From 9b51f9f528415cb2bf86c15d3458e11c76d79f48 Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Tue, 4 Jul 2017 19:36:29 +0700 Subject: [PATCH] Memory [HP-UX]: Add partial support --- neofetch | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/neofetch b/neofetch index 671eb7ea..66d6c330 100755 --- a/neofetch +++ b/neofetch @@ -1356,6 +1356,13 @@ get_memory() { mem_free="$((mem_stat[5] / 1024))" mem_used="$((mem_total - mem_free))" ;; + + "HP-UX") + # Partial support. Again, hppa and IA64 have a different + # command of how to access this. And they need root for + # some rason. + mem_free="$(($(vmstat | awk 'NR==3{printf $5}') / 1024))" + ;; esac memory="${mem_used}${mem_label:-MiB} / ${mem_total}${mem_label:-MiB}"