Fix memory detection on OpenBSD
This commit is contained in:
parent
f2be7906ec
commit
27ee879d25
1 changed files with 1 additions and 1 deletions
2
fetch
2
fetch
|
@ -641,7 +641,7 @@ getmemory () {
|
|||
memory="${memused}MB / ${memtotal}MB"
|
||||
;;
|
||||
|
||||
"OpenBSd" | "BSD")
|
||||
"OpenBSD" | "BSD")
|
||||
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
|
||||
memtotal=${memtotal/\(/}
|
||||
memtotal=${memtotal/MB\)/}
|
||||
|
|
Loading…
Reference in a new issue