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

View file

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