mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
CPU [Solaris]: Truncate garbage output in SPARC systems
This commit is contained in:
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
Block a user