CPU Usage: Added initial support for AIX

This commit is contained in:
Muhammad Herdiansyah 2017-01-04 09:33:30 +07:00
parent 4626349b4d
commit 367a5c83b6

View file

@ -1001,6 +1001,7 @@ get_cpu_usage() {
"Solaris") cores="$(kstat -m cpu_info | grep -c -F "chip_id")" ;;
"Haiku") cores="$(sysinfo -cpu | grep -c -F 'CPU #')" ;;
"iPhone OS") cores="${cpu/*\(}"; cores="${cores/\)*}" ;;
"AIX") cores="$(lparstat -i | awk -F':' '/Online Virtual CPUs/ {printf $2}')" ;;
esac
fi