Update to issue #174 fix to use $() instead of ``

This commit is contained in:
Brett Bohnenkamper
2015-03-26 23:26:15 -10:00
parent b577faaad6
commit d8f3fe2579

View File

@@ -995,7 +995,7 @@ detectmem () {
used_mem=$(($round_mem - $avail_mem))
usedmem=$(($used_mem / ($human * $human) ))
elif [ "$distro" == "OpenBSD" ]; then
totalmem=`dmesg | grep 'real mem' | cut -d' ' -f5 | tr -d '()MB'`
totalmem=$(dmesg | grep 'real mem' | cut -d' ' -f5 | tr -d '()MB')
usedmem=$(top -1 1 | awk '/Real:/ {print $3}' | sed 's/M.*//')
elif [ "$distro" == "NetBSD" ]; then
phys_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)