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
11
inxi
11
inxi
|
@ -3116,11 +3116,16 @@ 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=1
|
tempFanType=userCpuNo
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
tempFanType=2
|
if ( temp1 >= temp2 ) {
|
||||||
|
tempFanType=1
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
tempFanType=2
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue