From 04bdb70227d9df1ee19aa8d129ea3d636b9969fe Mon Sep 17 00:00:00 2001 From: Muhammad Herdiansyah Date: Fri, 9 Jun 2017 23:36:25 +0700 Subject: [PATCH] CPU [Solaris]: Truncate garbage output in SPARC systems --- neofetch | 1 + 1 file changed, 1 insertion(+) diff --git a/neofetch b/neofetch index 33f46c90..d9427bb5 100755 --- a/neofetch +++ b/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}')"