CPU [AIX]: Use lsattr instead of prtconf for faster output

This commit is contained in:
Muhammad Herdiansyah 2017-06-22 12:58:16 +07:00 committed by Herdiansyah
parent 2c11f83b2b
commit 0fa5e77124

View file

@ -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}')"