Commit 04bdb702 authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

CPU [Solaris]: Truncate garbage output in SPARC systems

parent 76399f55
......@@ -949,6 +949,7 @@ get_cpu() {
cpu="${cpu//*$'\n'}"
cpu="${cpu/[0-9]\.*}"
cpu="${cpu/ @*}"
cpu="${cpu/\(portid*}"
# Get CPU speed.
speed="$(psrinfo -v | awk '/operates at/ {print $6; exit}')"
......
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