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