From 6fab325463d42bc5a9e6f501e361415ad8259f01 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 20:32:34 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 65c78c5f..bfe91b76 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -327,6 +327,7 @@ CHECKTEMP_SERVICE(){ ${PW_TMPFOLDER}/zservicerun.${SENSORa}.done } CHECKTEMP_SERVICE_RUNSENSOR(){ + start_sub=`date +%s` SENSORa=${1} logtemp=${PW_LOGFOLDER}/log-temp-${SENSORa} [ ! -f ${logtemp} ] && touch ${logtemp} @@ -640,6 +641,7 @@ CHECKTEMP_SERVICE_RUNSENSOR(){ fi fi touch ${PW_TMPFOLDER}/zservicerun.${SENSORa}.done + end_sub=`date +%s`; runtime_sub=$((end_sub-start_sub)); echo "${SENSORa} - runtime: ${runtime_sub}s" } DAILYTEMP(){