CPU [Solaris]: Truncate garbage output in SPARC systems
This commit is contained in:
parent
76399f55da
commit
04bdb70227
1 changed files with 1 additions and 0 deletions
1
neofetch
1
neofetch
|
@ -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}')"
|
||||
|
|
Loading…
Reference in a new issue