CPU Speed: Don't use read
This commit is contained in:
parent
8c93c3b6c3
commit
f4b266b5c6
1 changed files with 2 additions and 2 deletions
4
neofetch
4
neofetch
|
@ -702,8 +702,8 @@ getcpu() {
|
|||
esac
|
||||
|
||||
# Fallback to cpuinfo_max_freq if $speed_type fails
|
||||
read -t 1 -r speed < "${speed_dir}/${speed_type}" || \
|
||||
read -t 1 -r speed < "${speed_dir}/cpuinfo_max_freq"
|
||||
speed="$(< "${speed_dir}/${speed_type}")" || \
|
||||
speed="$(< "${speed_dir}/cpuinfo_max_freq")"
|
||||
|
||||
speed="$((speed / 100000))"
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue