From fe3e52424754711b2324d70dbba8584d5b00fd7a Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 28 Jul 2009 18:30:51 +0000 Subject: [PATCH] fixed array bug --- inxi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index adbdb11..3a77629 100755 --- a/inxi +++ b/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