Fix stray bracket on FreeBSD
This commit is contained in:
parent
48787b3684
commit
7f0ff292d2
1 changed files with 2 additions and 1 deletions
3
fetch
3
fetch
|
@ -630,7 +630,8 @@ getmemory () {
|
|||
*"BSD")
|
||||
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
||||
memused=$(top -d1 | awk '/Mem:/ {print $4}')
|
||||
memtotal=${memtotal/()MB/}
|
||||
memtotal=${memtotal/\(/}
|
||||
memtotal=${memtotal/)MB/}
|
||||
memused=${memused/M/}
|
||||
memory="${memused}MB / ${memtotal}MB"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue