Update temp.inc.sh

This commit is contained in:
2024-04-22 18:08:40 -05:00
parent 3e200143f9
commit 052418fa5f

View File

@@ -1001,7 +1001,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
if [ "${QRY}" != "" ]; then
${mysql_conn} -e "${QRY}"
echo "${temp_f}" >| ${PW_TMPFOLDER}/.lastinsert/${SENSOR}
if [[ "${SENSOR}" != *"FAN"* ]]; then
if [[ "${SENSOR}" != *"CPU"* ]] && [[ "${SENSOR}" != *"FAN"* ]]; then
if [ ! -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre ]; then
echo "${temp_f}" > ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre
@@ -1010,6 +1010,8 @@ Previous Temp: ${last_temp}${GAUGESH}"
echo "${temp_f}" > ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre
fi
else
rm -f {PW_TMPFOLDER}/.lastinsert/${SENSOR}.*
fi