Forgot to divide the total memory by 1000
This commit is contained in:
parent
7a62379cec
commit
b379106e35
2
neofetch
2
neofetch
|
@ -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}))
|
||||||
;;
|
;;
|
||||||
|
|
Reference in New Issue