Explorar o código

Memory: Fixed inaccurate memory in Solaris

Muhammad Herdiansyah %!s(int64=8) %!d(string=hai) anos
pai
achega
c8bd5d4ea2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      neofetch

+ 1 - 1
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))"
         ;;