mirror of
https://github.com/smxi/inxi.git
synced 2024-11-16 16:21:39 +00:00
fixed array bug
This commit is contained in:
parent
1aa5589ead
commit
fe3e524247
5
inxi
5
inxi
|
@ -3038,6 +3038,7 @@ get_sensors_data()
|
|||
# there are some guesses here, and we will need a lot more data of
|
||||
# different systems before this can be trusted much. Note that there
|
||||
# is a hack here to handle cases where search term has 1 or 2 words with space
|
||||
# note: using arrays starting at 1 for all fan arrays to make it easier overall
|
||||
/^(M\/B|MB|SYS) Temp/ {
|
||||
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
||||
if ( $4 ~ /C|F/ && tempUnit == "" ){
|
||||
|
@ -3164,10 +3165,10 @@ get_sensors_data()
|
|||
# then the cpu fan speed
|
||||
if ( aFanReal[0] != "" ) {
|
||||
if ( tempFanType == 1 && aFanWorking[1] != "" ) {
|
||||
aFanReal[0]=aFanWorking[1]
|
||||
aFanReal[1]=aFanWorking[1]
|
||||
}
|
||||
else if ( tempFanType == 2 && aFanWorking[2] != "" ) {
|
||||
aFanReal[0]=aFanWorking[2]
|
||||
aFanReal[1]=aFanWorking[2]
|
||||
}
|
||||
}
|
||||
# then set mobo fan if missing
|
||||
|
|
Loading…
Reference in a new issue