From fa39436326d4a8c9080818304a89ce35b19c17fb Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 28 Apr 2014 03:27:45 +0000 Subject: [PATCH] branch one, one more tweak to handle too low data for temp1 vs coretemp0 --- inxi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 } } }