mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
Forgot to divide the total memory by 1000
This commit is contained in:
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
Block a user