Memory [Solaris]: Changed function name for consistency

This commit is contained in:
Muhammad Herdiansyah 2016-12-14 11:57:12 +07:00
parent f3bfd5a9f5
commit 9aed2b0103
1 changed files with 2 additions and 2 deletions

View File

@ -1118,8 +1118,8 @@ get_memory() {
"Solaris")
mem_total="$(prtconf | awk '/Memory/ {print $3}')"
memfree="$(($(sar -r 1 1 | awk 'NR==5 {print $2}') / 1024))"
mem_used="$((mem_total - memfree))"
mem_free="$(($(sar -r 1 1 | awk 'NR==5 {print $2}') / 1024))"
mem_used="$((mem_total - mem_free))"
;;
"Haiku")