Misc: Fix 100 character limit

This commit is contained in:
Muhammad Herdiansyah 2018-11-27 19:30:04 +07:00
parent 0168516a2c
commit ed0b0a9746

View file

@ -2270,8 +2270,10 @@ get_memory() {
"Solaris")
hw_pagesize="$(pagesize)"
mem_total="$(($(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}') * hw_pagesize / 1024 / 1024))"
mem_free="$(($(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}') * hw_pagesize / 1024 / 1024))"
pages_total=$(kstat -p unix:0:system_pages:pagestotal | awk '{print $2}')
pages_free=$(kstat -p unix:0:system_pages:pagesfree | awk '{print $2}')
mem_total="$((pages_total * hw_pagesize / 1024 / 1024))"
mem_free="$((pages_free * hw_pagesize / 1024 / 1024))"
mem_used="$((mem_total - mem_free))"
;;