CPU [AIX]: Use lsattr instead of prtconf for faster output
This commit is contained in:
parent
2c11f83b2b
commit
0fa5e77124
1 changed files with 1 additions and 1 deletions
2
neofetch
2
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}')"
|
||||
|
|
Loading…
Reference in a new issue