Memory: Fixed inaccurate memory in Solaris
This commit is contained in:
parent
7d65ae513d
commit
c8bd5d4ea2
1 changed files with 1 additions and 1 deletions
2
neofetch
2
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))"
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue