mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
CPU: Fixed incorrect speed on Windows. Closes #610
This commit is contained in:
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
Block a user