From 0fa5e771240e6ec214e370a3f300fc3cf9e491bb Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 22 Jun 2017 12:58:16 +0700 Subject: [PATCH] CPU [AIX]: Use lsattr instead of prtconf for faster output --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index bff2c23b..c28d8d2f 100755 --- a/neofetch +++ b/neofetch @@ -987,7 +987,7 @@ get_cpu() { "AIX") # Get CPU name. - cpu="$(prtconf | awk -F':' '/Processor Type/ {printf $2}')" + cpu="$(lsattr -El proc0 -a type | awk '{printf $2}')" # Get CPU speed. speed="$(prtconf -s | awk -F':' '{printf $2}')"