diff --git a/inxi b/inxi index 97600c4..ffedd0f 100755 --- a/inxi +++ b/inxi @@ -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 } } }