diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index cfd4b416..3622ec82 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -309,7 +309,7 @@ CHECKTEMP_SERVICE(){ # fi # fi for SENSORa in ${PW_SENSOR_ORD[@]}; do - echo -en "${SENSORa}" + echo -en "${SENSORa}"; start_sub=`date +%s` logtemp=${PW_LOGFOLDER}/log-temp-${SENSORa} [ ! -f ${logtemp} ] && touch ${logtemp} [ $(expr `date +%s` - $(stat -c %Y ${logtemp})) -ge $(echo "scale=0; ${PW_LOG_INTERVAL_NORMAL}*60" | bc) ] && relog=1 || relog=0 @@ -625,9 +625,10 @@ Previous Temp: ${last_temp[${SENSOR//-/}]}${GAUGESH}" fi fi echo " - done" + end_sub=`date +%s`; runtime_sub=$((end_sub-start_sub)); echo " - done: ${runtime_sub}s" done - end=`date +%s`; runtime=$((end-start)); echo "runtime: ${runtime}, pausing for 10secs..." + end=`date +%s`; runtime=$((end-start)); echo "Total runtime: ${runtime}s, pausing for 10secs..." sleep 10s done # & }