remove `+'

This commit is contained in:
darealshinji
2016-05-06 15:20:51 +02:00
parent a1062f6161
commit 1095d82080

View File

@@ -1216,7 +1216,7 @@ detectmem () {
usedmem=$(($used_mem / ($human * $human) ))
elif [ "$distro" == "OpenBSD" ]; then
totalmem=$(($(sysctl -n hw.physmem) / $human / $human))
+ usedmem=$(($(vmstat | sed -n 3p | cut -d' ' -f5) / $human))
usedmem=$(($(vmstat | sed -n 3p | cut -d' ' -f5) / $human))
elif [ "$distro" == "NetBSD" ]; then
phys_mem=$(awk '/MemTotal/ { print $2 }' /proc/meminfo)
totalmem=$((${phys_mem} / $human))