mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-13 20:22:11 +00:00
CPU [AIX]: Use lsattr instead of prtconf for faster output
This commit is contained in:
committed by
Herdiansyah
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
Block a user