code diet on "memory"

This commit is contained in:
Manuel Hutter 2014-06-21 14:24:10 +02:00
parent e727824964
commit 981f8068d2

View file

@ -25,13 +25,12 @@
os=$("$__explorer/os")
case "$os" in
"macosx")
let memsize=$(sysctl -n hw.memsize)/1024
echo "$memsize"
echo "$(sysctl -n hw.memsize)/1024" | bc
;;
*)
if [ -r /proc/meminfo ]; then
echo "$(grep "MemTotal:" /proc/meminfo | awk '{print $2}')"
grep "MemTotal:" /proc/meminfo | awk '{print $2}'
fi
;;
esac