From 306fe9caa6dea53f2277d2e37301b04beb418ab0 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 5 Nov 2016 12:03:00 +1100 Subject: [PATCH] Memory: [Haiku] Simpler memory command --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 13ea58be..ea4477cc 100755 --- a/neofetch +++ b/neofetch @@ -1125,7 +1125,7 @@ getmemory() { ;; "Haiku") - memtotal=$(($(sysinfo -mem | head -n1 | cut -d'/' -f3 | tr -d ' ' | tr -d ')') / 1024 / 1024)) + memtotal="$(($(sysinfo -mem | awk -F '\\/ |)' '{print $2; exit}') / 1024 / 1024))" memused="$(sysinfo -mem | awk -F '\\/|)' '{print $2; exit}')" memused="$((${memused/max} / 1024 / 1024))" ;;