From b36385d53d606ef63dcab1d46b49527d1665caf4 Mon Sep 17 00:00:00 2001 From: Dylan Date: Tue, 19 Jan 2016 22:33:25 +1100 Subject: [PATCH] Fixed *buntu cpu speed on multicore cpus --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index 546f3195..89c910a6 100755 --- a/fetch +++ b/fetch @@ -555,7 +555,7 @@ getcpu () { # Get cpu speed case "$distro" in *"buntu"*) - speed=$(awk -F ': ' '/cpu Mhz/ {printf $2}' /proc/cpuinfo) + speed=$(awk -F ': ' '/cpu MHz/ {printf $2; exit}' /proc/cpuinfo) speed=${speed/\./} ;;