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