CPU [AIX]: Use lsattr instead of prtconf for faster output
This commit is contained in:
parent
2c11f83b2b
commit
0fa5e77124
2
neofetch
2
neofetch
|
@ -987,7 +987,7 @@ get_cpu() {
|
||||||
|
|
||||||
"AIX")
|
"AIX")
|
||||||
# Get CPU name.
|
# Get CPU name.
|
||||||
cpu="$(prtconf | awk -F':' '/Processor Type/ {printf $2}')"
|
cpu="$(lsattr -El proc0 -a type | awk '{printf $2}')"
|
||||||
|
|
||||||
# Get CPU speed.
|
# Get CPU speed.
|
||||||
speed="$(prtconf -s | awk -F':' '{printf $2}')"
|
speed="$(prtconf -s | awk -F':' '{printf $2}')"
|
||||||
|
|
Reference in New Issue