Fix FreeBSD mem free
This commit is contained in:
parent
6f1ed5c0b7
commit
b6b4e09287
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -645,7 +645,7 @@ getmemory () {
|
|||
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
||||
memtotal=${memtotal/\(/}
|
||||
memtotal=${memtotal/)MB/}
|
||||
memfree=$(top -d 1 | awk '/Mem:/ {print $10}')
|
||||
memfree=$(top -d 1 | awk '/Mem:/ {printf $10}')
|
||||
memfree=${memfree/M/}
|
||||
memused=$((memtotal - memfree))
|
||||
|
||||
|
|
Loading…
Reference in a new issue