CPU Usage: Added initial support for AIX
This commit is contained in:
parent
4626349b4d
commit
367a5c83b6
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue