From 18d465a6d29c926c8c1690ac222fd401271c6ddc Mon Sep 17 00:00:00 2001 From: dylan araps Date: Tue, 5 Jan 2016 17:04:41 +1100 Subject: [PATCH] Fixed cpu whitespace for real this time --- fetch.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch.sh b/fetch.sh index e1b3f0cb..2330d3b1 100755 --- a/fetch.sh +++ b/fetch.sh @@ -450,6 +450,7 @@ getcpu () { # Get cpu name cpu="$(grep 'model name' /proc/cpuinfo)" cpu=${cpu/model name*: /} + cpu=${cpu// /} cpu=${cpu% } speed=$(grep 'cpu MHz' /proc/cpuinfo) @@ -457,7 +458,7 @@ getcpu () { speed=${speed/\./} # Convert mhz to ghz without bc - speed=$((${speed} / 1000)) + speed=$((${speed} / 100000)) speed=${speed:0:1}.${speed:1} cpu="$cpu @ ${speed}GHz" ;;