mirror of
https://github.com/smxi/inxi.git
synced 2025-02-23 13:32:18 +00:00
edits to comments
This commit is contained in:
parent
230cacfc53
commit
1627ebab29
4
inxi
4
inxi
|
@ -11218,7 +11218,7 @@ get_sensors_data()
|
|||
# there are some guesses here, but with more sensors samples it will get closer.
|
||||
# note: using arrays starting at 1 for all fan arrays to make it easier overall
|
||||
# more validation because gensub if fails to get match returns full string, so
|
||||
# we have to be sure we are working with the actual real string before assiging
|
||||
# we have to be sure we are working with the actual real string before assigning
|
||||
# data to real variables and arrays. Extracting C/F degree unit as well to use
|
||||
# when constructing temp items for array.
|
||||
# note that because of charset issues, no tempUnit="°" tempWorkingUnit degree sign
|
||||
|
@ -15959,7 +15959,7 @@ print_sensors_data()
|
|||
case $j in
|
||||
[0-9]|[1-9][0-9])
|
||||
if [[ -n ${a_sensors_working[$j]} ]];then
|
||||
fan_number=$(( $j + 1 )) # sys fans start on array key 5
|
||||
fan_number=$(( $j + 1 )) # basic fans start on array key 1
|
||||
# wrap after fan 6 total
|
||||
if [[ $fan_count -lt 7 ]];then
|
||||
sys_fans="$sys_fans${C1}fan-$fan_number$SEP3${C2} ${a_sensors_working[$j]} "
|
||||
|
|
Loading…
Reference in a new issue