CPU: Fixed incorrect speed on Windows. Closes #610
This commit is contained in:
parent
cc9c3a4573
commit
957ad1cf3f
3
neofetch
3
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
|
||||
|
|
Reference in New Issue