Remove OpenBSD detection from FreeBSD memory function

This commit is contained in:
Dylan 2016-03-26 09:53:08 +11:00
parent 030263465f
commit 36ca05dba5
1 changed files with 1 additions and 4 deletions

View File

@ -1146,10 +1146,7 @@ getmemory () {
memtotal=${memtotal/\(}
memtotal=${memtotal/MB\)}
case "$distro" in
"OpenBSD"*) memfree=$(top -d 1 | awk '/Real:/ {printf $6}') ;;
"FreeBSD"*) memfree=$(top -d 1 | awk '/Mem:/ {printf $10}') ;;
esac
memfree=$(top -d 1 | awk '/Mem:/ {printf $10}')
memfree=${memfree/M}
memused=$((memtotal - memfree))