Fix memory detection on OpenBSD

This commit is contained in:
Dylan 2016-01-18 17:48:27 +11:00
parent f2be7906ec
commit 27ee879d25

2
fetch
View file

@ -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\)/}