mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
Fix FreeBSD mem free
This commit is contained in:
2
fetch
2
fetch
@@ -645,7 +645,7 @@ getmemory () {
|
||||
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
||||
memtotal=${memtotal/\(/}
|
||||
memtotal=${memtotal/)MB/}
|
||||
memfree=$(top -d 1 | awk '/Mem:/ {print $10}')
|
||||
memfree=$(top -d 1 | awk '/Mem:/ {printf $10}')
|
||||
memfree=${memfree/M/}
|
||||
memused=$((memtotal - memfree))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user