From 2c11f83b2b91f672757ef5db12d0dcdc419b965e Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Thu, 22 Jun 2017 01:21:44 +0700 Subject: [PATCH] CPU [AIX]: Use prtconf -s for faster speed output --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index b5b3ab70..bff2c23b 100755 --- a/neofetch +++ b/neofetch @@ -990,7 +990,7 @@ get_cpu() { cpu="$(prtconf | awk -F':' '/Processor Type/ {printf $2}')" # Get CPU speed. - speed="$(prtconf | awk -F':' '/Processor Clock Speed/ {printf $2}')" + speed="$(prtconf -s | awk -F':' '{printf $2}')" speed="${speed/MHz}" # Get CPU cores.