diff --git a/inxi b/inxi index a07293d..adbdb11 100755 --- a/inxi +++ b/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: # note, for rare cases of weird cool cpus, user can override in their prefs and force the assignment if ( temp1 != "" && temp2 != "" ){ - if ( temp1 >= temp2 || userCpuNo == 1 ){ - tempFanType=1 + if ( userCpuNo ~ /(1|2)/ ) { + tempFanType=userCpuNo } else { - tempFanType=2 + if ( temp1 >= temp2 ) { + tempFanType=1 + } + else { + tempFanType=2 + } } }