added debugging output

This commit is contained in:
inxi-svn 2009-07-27 05:35:23 +00:00
parent fd48d72de2
commit 0c198e1c74

6
inxi
View file

@ -3023,7 +3023,9 @@ get_sensors_data()
cpuFan=""
}
# dumping the extra + signs, nobody has negative temps
/M\/B Temp/ {
# also, note gawk treats ° as a space, so we have to get the C/F data
# explicitly by testing for $4 ~ /C|F/ then concatenating manually
/M\/B Temp|SYS Temp/ {
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
if ( $4 ~ /C|F/ ){
moboTemp=moboTemp "°" $4
@ -3052,7 +3054,7 @@ get_sensors_data()
IFS="$ORIGINAL_IFS"
fi
log_function_data "A_SENSORS_DATA: ${A_SENSORS_DATA[@]}"
# echo "A_SENSORS_DATA: ${A_SENSORS_DATA[@]}"
echo "A_SENSORS_DATA: ${A_SENSORS_DATA[@]}"
eval $LOGFE
}