From ae4573066d82fdfcff9a2e337c9147cb6dd9a640 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 7 May 2016 21:14:46 +1000 Subject: [PATCH] Add memory support to iOS --- neofetch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/neofetch b/neofetch index 5394cb7f..a8578b0d 100755 --- a/neofetch +++ b/neofetch @@ -1232,7 +1232,7 @@ getmemory () { memtotal=$((mem[0] / 1024)) ;; - "Mac OS X") + "Mac OS X" | "iPhone OS") memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc) memwired=$(vm_stat | awk '/wired/ { print $4 }') memactive=$(vm_stat | awk '/active / { printf $3 }') @@ -1240,10 +1240,6 @@ getmemory () { memused=$(((${memwired//.} + ${memactive//.} + ${memcompressed//.}) * 4 / 1024)) ;; - "iPhone OS") - memtotal=$(printf "%s\n" "$(sysctl -n hw.memsize)"/1024^2 | bc) - ;; - "OpenBSD" | "BSD") case "$distro" in "OpenBSD"*)