mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
improved total count of fans supported for sensors output
This commit is contained in:
parent
62b865293b
commit
5064bc762c
4
inxi
4
inxi
|
@ -4521,7 +4521,7 @@ print_sensors_data()
|
|||
(( fan_count++ ))
|
||||
fi
|
||||
;;
|
||||
[3-9])
|
||||
[3-9]|1[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]|10|11|12|13|14)
|
||||
[0-9]|1[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
|
||||
|
|
Loading…
Reference in a new issue