CPU [Solaris]: Truncate garbage output in SPARC systems
This commit is contained in:
parent
76399f55da
commit
04bdb70227
1
neofetch
1
neofetch
|
@ -949,6 +949,7 @@ get_cpu() {
|
||||||
cpu="${cpu//*$'\n'}"
|
cpu="${cpu//*$'\n'}"
|
||||||
cpu="${cpu/[0-9]\.*}"
|
cpu="${cpu/[0-9]\.*}"
|
||||||
cpu="${cpu/ @*}"
|
cpu="${cpu/ @*}"
|
||||||
|
cpu="${cpu/\(portid*}"
|
||||||
|
|
||||||
# Get CPU speed.
|
# Get CPU speed.
|
||||||
speed="$(psrinfo -v | awk '/operates at/ {print $6; exit}')"
|
speed="$(psrinfo -v | awk '/operates at/ {print $6; exit}')"
|
||||||
|
|
Reference in New Issue