CPU: Strip spaces from speed output

This commit is contained in:
Muhammad Herdiansyah 2017-07-20 19:38:56 +07:00
parent 8aeb0e4fb1
commit 9c5dbcdfd6

View file

@ -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