From 2fcbc778f105c179cd28bdd6b1a0ff9c9d99f249 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 16 May 2017 14:58:47 +0700 Subject: [PATCH] Memory [IRIX]: Added initial support --- neofetch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neofetch b/neofetch index 97d6151a..918c4c24 100755 --- a/neofetch +++ b/neofetch @@ -1295,6 +1295,13 @@ get_memory() { mem_used="$((mem_total - mem_free))" mem_label="MB" ;; + + "IRIX") + mem_stat=($(pmem | head -1)) + mem_total="$((${mem_stat[3]} / 1024))" + mem_free="$((${mem_stat[5]} / 1024))" + mem_used="$((mem_total - mem_free))" + ;; esac memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"