CPU: Fixed incorrect speed on Windows. Closes #610

This commit is contained in:
Dylan Araps 2017-01-12 09:52:58 +11:00
parent cc9c3a4573
commit 957ad1cf3f

View file

@ -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