CPU [AIX]: Use prtconf -s for faster speed output
This commit is contained in:
parent
789ff58583
commit
2c11f83b2b
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -990,7 +990,7 @@ get_cpu() {
|
||||||
cpu="$(prtconf | awk -F':' '/Processor Type/ {printf $2}')"
|
cpu="$(prtconf | awk -F':' '/Processor Type/ {printf $2}')"
|
||||||
|
|
||||||
# Get CPU speed.
|
# Get CPU speed.
|
||||||
speed="$(prtconf | awk -F':' '/Processor Clock Speed/ {printf $2}')"
|
speed="$(prtconf -s | awk -F':' '{printf $2}')"
|
||||||
speed="${speed/MHz}"
|
speed="${speed/MHz}"
|
||||||
|
|
||||||
# Get CPU cores.
|
# Get CPU cores.
|
||||||
|
|
Loading…
Reference in a new issue