added up to 99 fans, that way it will never max out

This commit is contained in:
inxi-svn 2009-12-25 23:05:09 +00:00
parent 5064bc762c
commit 829aa64b70

4
inxi
View file

@ -4521,7 +4521,7 @@ print_sensors_data()
(( fan_count++ )) (( fan_count++ ))
fi fi
;; ;;
[3-9]|1[0-9]) [3-9]|[1-9][0-9])
if [[ -n ${a_sensors_working[$j]} ]];then if [[ -n ${a_sensors_working[$j]} ]];then
fan_number=$(( $j - 2 )) # sys fans start on array key 5 fan_number=$(( $j - 2 )) # sys fans start on array key 5
# wrap after fan 6 total # wrap after fan 6 total
@ -4540,7 +4540,7 @@ print_sensors_data()
for (( j=0; j < ${#a_sensors_working[@]}; j++ )) for (( j=0; j < ${#a_sensors_working[@]}; j++ ))
do do
case $j in case $j in
[0-9]|1[0-9]) [0-9]|[1-9][0-9])
if [[ -n ${a_sensors_working[$j]} ]];then if [[ -n ${a_sensors_working[$j]} ]];then
fan_number=$(( $j + 1 )) # sys fans start on array key 5 fan_number=$(( $j + 1 )) # sys fans start on array key 5
# wrap after fan 6 total # wrap after fan 6 total