From c8bd5d4ea22e36b135c2be6baad5c1a0b952139c Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 5 Jan 2017 13:55:28 +0700 Subject: [PATCH] Memory: Fixed inaccurate memory in Solaris --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index fb0d3ccd..1e678ef0 100755 --- a/neofetch +++ b/neofetch @@ -1181,7 +1181,7 @@ get_memory() { "Solaris") mem_total="$(prtconf | awk '/Memory/ {print $3}')" - mem_free="$(($(sar -r 1 1 | awk 'NR==5 {print $2}') / 1024))" + mem_free="$(($(vmstat | awk 'NR==3{printf $5}') / 1024))" mem_used="$((mem_total - mem_free))" ;;