From 052418fa5f83d1d19b1ac683bf28a0a4c0ca3010 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 22 Apr 2024 18:08:40 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 3c01eaef..1b1d29da 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -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