more comments tweaks and clarifications

This commit is contained in:
inxi-svn 2009-07-30 01:09:58 +00:00
parent da55d78f6f
commit a402275233

4
inxi
View file

@ -4143,7 +4143,9 @@ print_sensors_data()
IFS="," IFS=","
a_sensors_working=( ${A_SENSORS_DATA[0]} ) a_sensors_working=( ${A_SENSORS_DATA[0]} )
IFS="$ORIGINAL_IFS" IFS="$ORIGINAL_IFS"
# initial error cases, for missing app or unconfigured sensors # initial error cases, for missing app or unconfigured sensors. Note that array 0
# always has at least 3 items, cpu/mobo/psu temp in it. If it's a single item, then
# it's an error message, not the real data arrays.
if [[ ${#a_sensors_working[@]} -eq 1 ]];then if [[ ${#a_sensors_working[@]} -eq 1 ]];then
cpu_temp=${A_SENSORS_DATA[0]} cpu_temp=${A_SENSORS_DATA[0]}
b_is_error='true' b_is_error='true'