From 15c6720c2646c3a5e4fdaee241d926414d58c78e Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 12 Jun 2016 17:13:26 +1000 Subject: [PATCH] OS X memory: Remove the need for 'bc' --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index a48cbbd0..97a5e8e6 100755 --- a/neofetch +++ b/neofetch @@ -1401,7 +1401,7 @@ getmemory () { ;; "Mac OS X" | "iPhone OS") - memtotal="$(printf "scale=0; %s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc)" + memtotal="$(($(sysctl -n hw.memsize) / 1024 / 1024))" memwired="$(vm_stat | awk '/wired/ { print $4 }')" memactive="$(vm_stat | awk '/active / { printf $3 }')" memcompressed="$(vm_stat | awk '/occupied/ { printf $5 }')"