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
1 changed files with 2 additions and 1 deletions

View File

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