Commit 2c11f83b authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah Committed by Herdiansyah

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

parent 789ff585
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment