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

21
inxi
View file

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