mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +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
|
# 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
|
# 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
|
# 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/ {
|
/^(M\/B|MB|SYS) Temp/ {
|
||||||
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
||||||
if ( $4 ~ /C|F/ && tempUnit == "" ){
|
if ( $4 ~ /C|F/ && tempUnit == "" ){
|
||||||
|
@ -3164,10 +3165,10 @@ get_sensors_data()
|
||||||
# then the cpu fan speed
|
# then the cpu fan speed
|
||||||
if ( aFanReal[0] != "" ) {
|
if ( aFanReal[0] != "" ) {
|
||||||
if ( tempFanType == 1 && aFanWorking[1] != "" ) {
|
if ( tempFanType == 1 && aFanWorking[1] != "" ) {
|
||||||
aFanReal[0]=aFanWorking[1]
|
aFanReal[1]=aFanWorking[1]
|
||||||
}
|
}
|
||||||
else if ( tempFanType == 2 && aFanWorking[2] != "" ) {
|
else if ( tempFanType == 2 && aFanWorking[2] != "" ) {
|
||||||
aFanReal[0]=aFanWorking[2]
|
aFanReal[1]=aFanWorking[2]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
# then set mobo fan if missing
|
# then set mobo fan if missing
|
||||||
|
|
Loading…
Reference in a new issue