We grabbed the wrong field
This commit is contained in:
parent
f3c4181d6d
commit
33bb8ff4d3
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue