branch one, one more tweak to handle too low data for temp1 vs coretemp0

This commit is contained in:
inxi-svn 2014-04-28 03:27:45 +00:00
parent b265514d0f
commit fa39436326

6
inxi
View file

@ -8407,6 +8407,10 @@ get_sensors_data()
else {
cpuTempReal=temp2
}
# last check for bad data
if ( cpuTempReal != "" && core0Temp != "" && (core0Temp - cpuTempReal) > 10 ) {
cpuTempReal=core0Temp
}
}
else {
# there are some absurdly wrong temp1: acpitz-virtual-0 temp1: +13.8°C
@ -8414,7 +8418,7 @@ get_sensors_data()
cpuTempReal=core0Temp
}
else {
cpuTempReal=temp1
cpuTempReal=temp1 # can be null, that is ok
}
}
}