Update temp.inc.sh
This commit is contained in:
1 parent
d04e5c13de
commit
a0acf1110f
1 file changed
+1
-1
+1
-1
@@ -1057,7 +1057,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
|
||||
#### TRACKING TEMP CHANGES
|
||||
if [ "${temp_f}" != "" ] && [[ "${SENSOR}" != *"CPU-Usage"* ]] && [[ "${SENSOR}" != *"FAN"* ]]; then
|
||||
if [ ! -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre ]; then
|
||||
[ ! -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ] && echo "${temp_f}" > ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre
|
||||
echo "${temp_f}" > ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre
|
||||
|
||||
elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.pre)) -ge 1800 ]; then
|
||||
[ -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ] && mv -f ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old ${PW_TMPFOLDER}/.lastinsert/${SENSOR}.old2
|
||||
|
||||
Reference in new issue
Block a user