From 0c198e1c744126ab625698e0be64d991687ba7e7 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Mon, 27 Jul 2009 05:35:23 +0000 Subject: [PATCH] added debugging output --- inxi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 2ce81f6..a3ce3fa 100755 --- a/inxi +++ b/inxi @@ -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 }