From 7e073ef5737265630baaf5cc63cc8164b8e2ca32 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 19 Jan 2016 11:15:37 +1100 Subject: [PATCH] Fix whitespace issue with NetBSD cpu speed --- fetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index 654425e9..bf439b29 100755 --- a/fetch +++ b/fetch @@ -582,10 +582,11 @@ getcpu () { speed="$(grep -F 'cpu MHz' /proc/cpuinfo)" speed=${speed/cpu MHz*: /} speed=${speed/'.'/} - speed=$((speed / 100)) + speed=$((speed / 10000)) speed=${speed:0:1}.${speed:1} cpu="$cpu @ ${speed}GHz" + cpu=${cpu/[[:space:]]/} ;; *)