mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-03 16:51:29 +00:00
Merge pull request #957 from Kayant/master
cpu_temp: Add support for Zen processors
This commit is contained in:
2
neofetch
2
neofetch
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user