diff --git a/neofetch b/neofetch index 851f428d..e05b6258 100755 --- a/neofetch +++ b/neofetch @@ -1408,7 +1408,7 @@ getmemory () { ;; "Mac OS X" | "iPhone OS") - memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc) + memtotal=$(printf "scale=0; %s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc) memwired=$(vm_stat | awk '/wired/ { print $4 }') memactive=$(vm_stat | awk '/active / { printf $3 }') memcompressed=$(vm_stat | awk '/occupied/ { printf $5 }')