Memory: Fixed inaccurate memory in Solaris
This commit is contained in:
parent
7d65ae513d
commit
c8bd5d4ea2
2
neofetch
2
neofetch
|
@ -1181,7 +1181,7 @@ get_memory() {
|
||||||
|
|
||||||
"Solaris")
|
"Solaris")
|
||||||
mem_total="$(prtconf | awk '/Memory/ {print $3}')"
|
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))"
|
mem_used="$((mem_total - mem_free))"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|
Reference in New Issue