Fix memory detection on OpenBSD

This commit is contained in:
Dylan 2016-01-18 17:47:31 +11:00
parent 04ba1d2c3b
commit f2be7906ec
1 changed files with 1 additions and 1 deletions

2
fetch
View File

@ -641,7 +641,7 @@ getmemory () {
memory="${memused}MB / ${memtotal}MB"
;;
"BSD")
"OpenBSd" | "BSD")
memtotal=$(dmesg | awk '/real mem/ {printf $5}')
memtotal=${memtotal/\(/}
memtotal=${memtotal/MB\)/}