Merge pull request #957 from Kayant/master

cpu_temp: Add support for Zen processors
This commit is contained in:
Dylan Araps 2018-04-21 15:13:50 +00:00 committed by GitHub
commit c6d83a8f1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1022,7 +1022,7 @@ get_cpu() {
# Select the right temperature file.
for temp_dir in /sys/class/hwmon/*; do
[[ "$(< "${temp_dir}/name")" =~ (coretemp|fam15h_power) ]] && \
[[ "$(< "${temp_dir}/name")" =~ (coretemp|fam15h_power|k10temp) ]] && \
{ temp_dir="${temp_dir}/temp1_input"; break; }
done