diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index b8a5749c..4c73e0d5 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -1322,7 +1322,7 @@ Previous Temp: ${last_temp}${GAUGESH}" QRY="" elif [ "${SENSOR}" == "AC" ]; then - if [ "${temp_f}" != "32" ]; then + if [ "${target}" != "32" ]; then ${mysql_conn} -e "USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`) VALUES ('38',CONVERT_TZ('$(date +'%Y-%m-%d %H:%M:%S')', 'America/Chicago', 'UTC'),'${target}')" QRY="USE servermonitor; INSERT INTO sensor_data (\`sensorid\`, \`date\`, \`temp\`) VALUES ('${PW_SENSOR_ID[${SENSOR}]}',CONVERT_TZ('$(date +'%Y-%m-%d %H:%M:%S')', 'America/Chicago', 'UTC'),'${temp_f}')" fi