From 367a5c83b6543bc6d09183c6cb5df3ebd15ed8ba Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Wed, 4 Jan 2017 09:33:30 +0700 Subject: [PATCH] CPU Usage: Added initial support for AIX --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 1df45d03..0e29cf87 100755 --- a/neofetch +++ b/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