Update temp.inc.sh
This commit is contained in:
@@ -1245,7 +1245,7 @@ Previous Temp: ${last_temp}${GAUGESH}"
|
|||||||
if [ ! -f ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre ]; then
|
if [ ! -f ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre ]; then
|
||||||
touch ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre
|
touch ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre
|
||||||
|
|
||||||
//elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre)) -ge 120 ] || [ ${temp_diff} > 1 ]; then
|
# elif [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre)) -ge 120 ] || [ ${temp_diff} > 1 ]; then
|
||||||
elif [ ! -f ${PW_TMPFOLDER}/temp.critsys.${SENSOR} ] || [ ${temp_diff} > 1 ]; then
|
elif [ ! -f ${PW_TMPFOLDER}/temp.critsys.${SENSOR} ] || [ ${temp_diff} > 1 ]; then
|
||||||
# if (( $(bc <<< "${temp_diff} >= 1") )); then
|
# if (( $(bc <<< "${temp_diff} >= 1") )); then
|
||||||
touch ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre
|
touch ${PW_TMPFOLDER}/temp.critsys.${SENSOR}.pre
|
||||||
|
|||||||
Reference in New Issue
Block a user