From 829aa64b7046e9a758bb63566ebb487a4db7cde5 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 25 Dec 2009 23:05:09 +0000 Subject: [PATCH] added up to 99 fans, that way it will never max out --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 64f577c..9716111 100755 --- a/inxi +++ b/inxi @@ -4521,7 +4521,7 @@ print_sensors_data() (( fan_count++ )) fi ;; - [3-9]|1[0-9]) + [3-9]|[1-9][0-9]) if [[ -n ${a_sensors_working[$j]} ]];then fan_number=$(( $j - 2 )) # sys fans start on array key 5 # wrap after fan 6 total @@ -4540,7 +4540,7 @@ print_sensors_data() for (( j=0; j < ${#a_sensors_working[@]}; j++ )) do case $j in - [0-9]|1[0-9]) + [0-9]|[1-9][0-9]) if [[ -n ${a_sensors_working[$j]} ]];then fan_number=$(( $j + 1 )) # sys fans start on array key 5 # wrap after fan 6 total