Update temp.inc.sh
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user