From dfc64f6b198fe7082a95bf89ba10989a18839a06 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 3 Dec 2016 19:33:36 +1100 Subject: [PATCH] CPU: Fix incorrect CPU speeds --- config/config | 6 ++---- neofetch | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/config/config b/config/config index 2bab2b15..84ba3db4 100644 --- a/config/config +++ b/config/config @@ -134,13 +134,11 @@ shell_version="on" # CPU speed type # -# Default: 'current' +# Default: 'bios' # Values: 'current', 'min', 'max', 'bios', -# 'scaling_current', 'scaling_min', -# 'scaling_max' # Flag: --speed_type # Supports: Linux with 'cpufreq' -speed_type="current" +speed_type="bios" # Shorten the output of the CPU function # diff --git a/neofetch b/neofetch index 39f9d39b..1299bbfb 100755 --- a/neofetch +++ b/neofetch @@ -725,14 +725,12 @@ get_cpu() { "min") speed_type="scaling_min_freq" ;; "max") speed_type="scaling_max_freq" ;; "bios") speed_type="bios_limit" ;; - "scaling_current") speed_type="scaling_cur_freq" ;; - "scaling_min") speed_type="scaling_min_freq" ;; - "scaling_max") speed_type="scaling_max_freq" ;; esac # Fallback to cpuinfo_max_freq if $speed_type fails speed="$(< "${speed_dir}/${speed_type}")" || \ - speed="$(< "${speed_dir}/cpuinfo_max_freq")" + speed="$(< "${speed_dir}/bios_limit")" || \ + speed="$(< "${speed_dir}/scaling_max_freq")" speed="$((speed / 100000))"