Forgot to divide the total memory by 1000
This commit is contained in:
parent
7a62379cec
commit
b379106e35
1 changed files with 1 additions and 1 deletions
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}))
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in a new issue