From 957ad1cf3f131f6b02672053dc38c3929a25284f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Thu, 12 Jan 2017 09:52:58 +1100 Subject: [PATCH] CPU: Fixed incorrect speed on Windows. Closes #610 --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 93c82ffa..eb220b9e 100755 --- a/neofetch +++ b/neofetch @@ -797,7 +797,8 @@ get_cpu() { # Fallback to bios_limit if $speed_type fails. speed="$(< "${speed_dir}/${speed_type}")" || \ speed="$(< "${speed_dir}/bios_limit")" || \ - speed="$(< "${speed_dir}/scaling_max_freq")" + speed="$(< "${speed_dir}/scaling_max_freq")" || \ + speed="$(< "${speed_dir}/cpuinfo_max_freq")" speed="$((speed / 100000))" else