(change version)

bug fix in sensors counting and detection.
This commit is contained in:
inxi-svn 2009-07-30 00:39:57 +00:00
parent 4b1296685c
commit 1452797265

4
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash
########################################################################
#### Script Name: inxi
#### version: 1.1.2
#### version: 1.1.3
#### Date: 29 July 2009
########################################################################
#### SPECIAL THANKS
@ -3125,7 +3125,7 @@ get_sensors_data()
sysFanNu=gensub( /^(FAN|CHASSIS)([2-9])[ \t]+(.*)/, "\\2", 1, $1 )
if ( sysFanNu ~ /^([2-9])$/ ) {
# note: cpu/mobo/ps/fan1 above are 1/2/3/4
sysFanNu = sysFanNu + 4
sysFanNu = sysFanNu + 3
aFanMain[sysFanNu]=gensub( /[ \t]*([0-9]+)[ \t]+(.*)/, "\\1", 1, $2 )
}
}