From 22939ba5029db670d085a37de6f0888ef2a88008 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sun, 21 Feb 2016 08:34:02 +1100 Subject: [PATCH] Fix stray digit in Windows CPU output --- fetch | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fetch b/fetch index 75f98c2f..ab34203f 100755 --- a/fetch +++ b/fetch @@ -803,7 +803,11 @@ getcpu () { speed="$(grep -F 'cpu MHz' /proc/cpuinfo)" speed=${speed/cpu MHz*: } speed=${speed/\.} - speed=$((speed / 10000)) + + case "$distro" in + "NetBSD"*) speed=$((speed / 10000)) ;; + "WindowS"*) speed=$((speed / 100000)) ;; + esac ;; esac