Commit c8bd5d4e authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

Memory: Fixed inaccurate memory in Solaris

parent 7d65ae51
...@@ -1181,7 +1181,7 @@ get_memory() { ...@@ -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))"
;; ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment