mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
We grabbed the wrong field
This commit is contained in:
2
neofetch
2
neofetch
@@ -1410,7 +1410,7 @@ getmemory () {
|
|||||||
|
|
||||||
"BSD")
|
"BSD")
|
||||||
memtotal=$(($(sysctl -n hw.physmem) / 1024 / 1024))
|
memtotal=$(($(sysctl -n hw.physmem) / 1024 / 1024))
|
||||||
memfree=$(($(vmstat | awk 'END{printf $4}') / 1000))
|
memfree=$(($(vmstat | awk 'END{printf $5}') / 1024))
|
||||||
memused=$((memtotal - memfree))
|
memused=$((memtotal - memfree))
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user