CPU: Strip spaces from speed output
This commit is contained in:
parent
8aeb0e4fb1
commit
9c5dbcdfd6
1 changed files with 2 additions and 1 deletions
3
neofetch
3
neofetch
|
@ -1038,8 +1038,9 @@ get_cpu() {
|
|||
cpu="${cpu//Chip Revision*}"
|
||||
cpu="${cpu//Technologies, Inc}"
|
||||
|
||||
# Trim spaces from core output
|
||||
# Trim spaces from core and speed output
|
||||
cores="${cores//[[:space:]]}"
|
||||
speed="${speed//[[:space:]]}"
|
||||
|
||||
# Remove CPU brand from the output.
|
||||
if [[ "$cpu_brand" == "off" ]]; then
|
||||
|
|
Loading…
Reference in a new issue