mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
small tweak for temp1/2 handling
This commit is contained in:
parent
fcf62e4d52
commit
1aa5589ead
7
inxi
7
inxi
|
@ -3116,13 +3116,18 @@ get_sensors_data()
|
||||||
# first we need to handle the case where we have to determine which temp/fan to use for cpu and mobo:
|
# first we need to handle the case where we have to determine which temp/fan to use for cpu and mobo:
|
||||||
# note, for rare cases of weird cool cpus, user can override in their prefs and force the assignment
|
# note, for rare cases of weird cool cpus, user can override in their prefs and force the assignment
|
||||||
if ( temp1 != "" && temp2 != "" ){
|
if ( temp1 != "" && temp2 != "" ){
|
||||||
if ( temp1 >= temp2 || userCpuNo == 1 ){
|
if ( userCpuNo ~ /(1|2)/ ) {
|
||||||
|
tempFanType=userCpuNo
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if ( temp1 >= temp2 ) {
|
||||||
tempFanType=1
|
tempFanType=1
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tempFanType=2
|
tempFanType=2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# then get the real cpu temp, best guess is hottest is real
|
# then get the real cpu temp, best guess is hottest is real
|
||||||
if ( cpuTemp != "" ){
|
if ( cpuTemp != "" ){
|
||||||
|
|
Loading…
Reference in a new issue