mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
added debugging output
This commit is contained in:
parent
fd48d72de2
commit
0c198e1c74
6
inxi
6
inxi
|
@ -3023,7 +3023,9 @@ get_sensors_data()
|
||||||
cpuFan=""
|
cpuFan=""
|
||||||
}
|
}
|
||||||
# dumping the extra + signs, nobody has negative temps
|
# 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 )
|
moboTemp=gensub( /\+(.+)/, "\\1", 1, $3 )
|
||||||
if ( $4 ~ /C|F/ ){
|
if ( $4 ~ /C|F/ ){
|
||||||
moboTemp=moboTemp "°" $4
|
moboTemp=moboTemp "°" $4
|
||||||
|
@ -3052,7 +3054,7 @@ get_sensors_data()
|
||||||
IFS="$ORIGINAL_IFS"
|
IFS="$ORIGINAL_IFS"
|
||||||
fi
|
fi
|
||||||
log_function_data "A_SENSORS_DATA: ${A_SENSORS_DATA[@]}"
|
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
|
eval $LOGFE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue