mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
more comments tweaks and clarifications
This commit is contained in:
parent
da55d78f6f
commit
a402275233
4
inxi
4
inxi
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue