Update temp.inc.sh
This commit is contained in:
1 parent
9f892c83c6
commit
eadd05cdb5
1 file changed
+1
-1
+1
-1
@@ -482,7 +482,7 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
|
|||||||
|
|
||||||
#### LOGGING OF SERVERROOM SENSOR DIFFERENCE
|
#### LOGGING OF SERVERROOM SENSOR DIFFERENCE
|
||||||
if [ "${SENSOR}" == "ServerRoomLA" ]; then
|
if [ "${SENSOR}" == "ServerRoomLA" ]; then
|
||||||
if [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.log.sr.difference)) -ge 3 ]; then
|
if [ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] || [ $(expr `date +%s` - $(stat -c %Y ${PW_TMPFOLDER}/.log.sr.difference)) -ge 60 ]; then
|
||||||
if [ "${temp_f}" != "" ] && [ "${ServerRoomTH}" != "" ]; then
|
if [ "${temp_f}" != "" ] && [ "${ServerRoomTH}" != "" ]; then
|
||||||
[ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] && touch ${PW_TMPFOLDER}/.log.sr.difference
|
[ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] && touch ${PW_TMPFOLDER}/.log.sr.difference
|
||||||
temp_difference=$(bc <<< "scale=1; ${temp_f}-${ServerRoomTH}")
|
temp_difference=$(bc <<< "scale=1; ${temp_f}-${ServerRoomTH}")
|
||||||
|
|||||||
Reference in new issue
Block a user