mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
output tweak
This commit is contained in:
parent
f9b4b1bdce
commit
5193280b8d
6
inxi
6
inxi
|
@ -3913,21 +3913,21 @@ print_sensors_data()
|
||||||
else
|
else
|
||||||
mobo_temp='N/A'
|
mobo_temp='N/A'
|
||||||
fi
|
fi
|
||||||
mobo_temp="${C1}Temps: mobo:${C2} $mobo_temp"
|
mobo_temp="${C1}Mobo Temp:${C2} $mobo_temp"
|
||||||
|
|
||||||
if [[ -n ${A_SENSORS_DATA[1]} ]];then
|
if [[ -n ${A_SENSORS_DATA[1]} ]];then
|
||||||
cpu_temp=${A_SENSORS_DATA[1]}
|
cpu_temp=${A_SENSORS_DATA[1]}
|
||||||
else
|
else
|
||||||
cpu_temp='N/A'
|
cpu_temp='N/A'
|
||||||
fi
|
fi
|
||||||
cpu_temp="${C1}cpu:${C2} $cpu_temp"
|
cpu_temp="${C1}Cpu Temp:${C2} $cpu_temp"
|
||||||
|
|
||||||
if [[ -n ${A_SENSORS_DATA[2]} ]];then
|
if [[ -n ${A_SENSORS_DATA[2]} ]];then
|
||||||
cpu_fan=${A_SENSORS_DATA[2]}
|
cpu_fan=${A_SENSORS_DATA[2]}
|
||||||
else
|
else
|
||||||
cpu_fan='N/A'
|
cpu_fan='N/A'
|
||||||
fi
|
fi
|
||||||
cpu_fan="${C1}Fans: cpu:${C2} $cpu_fan rpm"
|
cpu_fan="${C1}Cpu Fan:${C2} $cpu_fan rpm"
|
||||||
sensors_data=${A_SENSORS_DATA[0]}
|
sensors_data=${A_SENSORS_DATA[0]}
|
||||||
fi
|
fi
|
||||||
sensors_data="$mobo_temp $cpu_temp $cpu_fan"
|
sensors_data="$mobo_temp $cpu_temp $cpu_fan"
|
||||||
|
|
Loading…
Reference in a new issue