Forgot to divide the total memory by 1000

This commit is contained in:
Dylan 2016-05-13 09:37:19 +10:00
parent 7a62379cec
commit b379106e35
1 changed files with 1 additions and 1 deletions

View File

@ -1409,7 +1409,7 @@ getmemory () {
;;
"BSD")
memtotal=$(sysctl -n hw.physmem)
memtotal=$(($(sysctl -n hw.physmem) / 1000))
memfree=$(($(vmstat | awk 'END{printf $4}') / 1000))
memused=$((memtotal - ${memfree/M}))
;;