From 4fc82847dbd2d19290f9436d6fb20c1f0e93c9e4 Mon Sep 17 00:00:00 2001 From: dylan araps Date: Mon, 4 Jan 2016 14:59:47 +1100 Subject: [PATCH] Mac OS X: getmemory fix. --- fetch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch.sh b/fetch.sh index 89652fab..17943c7f 100755 --- a/fetch.sh +++ b/fetch.sh @@ -407,7 +407,7 @@ getmemory () { ;; "Mac OS X") - memtotal=$(printf "$(sysctl -n hw.memsize)"/1024^2 | bc) + memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc) memwired=$(vm_stat | awk '/wired/ { print $4 }') memactive=$(vm_stat | awk '/active / { print $3 }') memcompressed=$(vm_stat | awk '/occupied/ { print $5 }')