more mods on senses, branches/one

This commit is contained in:
inxi-svn 2014-04-28 03:03:31 +00:00
parent 01751d78be
commit 34d57c59b2

9
inxi
View file

@ -8399,7 +8399,8 @@ get_sensors_data()
cpuTempReal=cpuTemp
}
}
else if ( tempFanType != "" ){
else {
if ( tempFanType != "" ){
if ( tempFanType == 1 ){
cpuTempReal=temp1
}
@ -8407,9 +8408,15 @@ get_sensors_data()
cpuTempReal=temp2
}
}
else {
if ( core0Temp != "" ) {
cpuTempReal=core0Temp
}
else {
cpuTempReal=temp1
}
}
}
# if all else fails, use core0/peci temp if present and cpu is null
if ( cpuTempReal == "" ) {
if ( core0Temp != "" ) {