mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 11:39:53 +00:00
Fix memory on FreeBSD
This commit is contained in:
2
fetch
2
fetch
@@ -629,7 +629,7 @@ getmemory () {
|
|||||||
|
|
||||||
*"BSD")
|
*"BSD")
|
||||||
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
||||||
memused=$(top -1 1 | awk '/Real:/ {print $3}')
|
memused=$(top -d1 | awk '/Real:/ {print $3}')
|
||||||
memtotal=${memtotal/()MB/}
|
memtotal=${memtotal/()MB/}
|
||||||
memused=${memused/M/}
|
memused=${memused/M/}
|
||||||
memory="${memused}MB / ${memtotal}MB"
|
memory="${memused}MB / ${memtotal}MB"
|
||||||
|
|||||||
Reference in New Issue
Block a user