mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-17 17:37:11 +00:00
Fix stray bracket on FreeBSD
This commit is contained in:
3
fetch
3
fetch
@@ -630,7 +630,8 @@ getmemory () {
|
|||||||
*"BSD")
|
*"BSD")
|
||||||
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
||||||
memused=$(top -d1 | awk '/Mem:/ {print $4}')
|
memused=$(top -d1 | awk '/Mem:/ {print $4}')
|
||||||
memtotal=${memtotal/()MB/}
|
memtotal=${memtotal/\(/}
|
||||||
|
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