diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 3f89e9fc..fdc36fd2 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -684,8 +684,10 @@ CHECKTEMP(){ done fi rm -f ${PW_TMPFOLDER}/.local.fanspeed.* - [ ${REPORT} -eq 0 ] && end=`date +%s`; runtime=$((end-start)); echo -e "${idsCL[Default]}script runtime: ${runtime}s" - [ ${REPORT} -eq 0 ] && [ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}" + if [ ${REPORT} -eq 0 ] + end=`date +%s`; runtime=$((end-start)); echo -e "${idsCL[Default]}script runtime: ${runtime}s" + [ "${PW_ACTION}" != "" ] && echo -e "${idsCL[Default]}" + fi } CHECKTEMPSENSOR(){