Commit 0fa5e771 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah Committed by Herdiansyah

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

parent 2c11f83b
......@@ -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}')"
......
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