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(){