CPU [AIX]: Use prtconf -s for faster speed output

This commit is contained in:
Muhammad Herdiansyah 2017-06-22 01:21:44 +07:00 committed by Herdiansyah
parent 789ff58583
commit 2c11f83b2b

View file

@ -990,7 +990,7 @@ get_cpu() {
cpu="$(prtconf | awk -F':' '/Processor Type/ {printf $2}')"
# Get CPU speed.
speed="$(prtconf | awk -F':' '/Processor Clock Speed/ {printf $2}')"
speed="$(prtconf -s | awk -F':' '{printf $2}')"
speed="${speed/MHz}"
# Get CPU cores.