mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 00:47:47 +00:00
branch one, one more tweak to handle too low data for temp1 vs coretemp0
This commit is contained in:
parent
b265514d0f
commit
fa39436326
6
inxi
6
inxi
|
@ -8407,6 +8407,10 @@ get_sensors_data()
|
||||||
else {
|
else {
|
||||||
cpuTempReal=temp2
|
cpuTempReal=temp2
|
||||||
}
|
}
|
||||||
|
# last check for bad data
|
||||||
|
if ( cpuTempReal != "" && core0Temp != "" && (core0Temp - cpuTempReal) > 10 ) {
|
||||||
|
cpuTempReal=core0Temp
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
# there are some absurdly wrong temp1: acpitz-virtual-0 temp1: +13.8°C
|
# there are some absurdly wrong temp1: acpitz-virtual-0 temp1: +13.8°C
|
||||||
|
@ -8414,7 +8418,7 @@ get_sensors_data()
|
||||||
cpuTempReal=core0Temp
|
cpuTempReal=core0Temp
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
cpuTempReal=temp1
|
cpuTempReal=temp1 # can be null, that is ok
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue