Update temp.inc.sh
This commit is contained in:
@@ -588,11 +588,9 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}"
|
||||
if [ "${temp_f}" != "" ] && [ "${ServerRoomTH}" != "" ]; then
|
||||
[ ! -f ${PW_TMPFOLDER}/.log.sr.difference ] && touch ${PW_TMPFOLDER}/.log.sr.difference
|
||||
temp_difference=$(bc <<< "scale=2; ${ServerRoomTH}-${temp_f}")
|
||||
echo ${temp_difference}
|
||||
# (( $(bc <<<"${temp_difference} < 0") )) && temp_difference=`echo "scale=2; ${temp_difference} * -1" | bc`
|
||||
echo "$(date "+%Y-%m-%d %H:%M:%S")~${temp_difference}" >> ${PW_TMPFOLDER}/.log.sr.difference
|
||||
else
|
||||
echo 0
|
||||
|
||||
fi
|
||||
# fi
|
||||
elif [ "${SENSOR}" == "ServerRoomTH" ]; then
|
||||
|
||||
Reference in New Issue
Block a user