We grabbed the wrong field

This commit is contained in:
Dylan 2016-05-13 10:15:59 +10:00
parent f3c4181d6d
commit 33bb8ff4d3

View file

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