diff --git a/powerwall.sh b/powerwall.sh index 25fc270b..d4f6b023 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -16,6 +16,7 @@ VERBOSE=false CHECKTEMP(){ + start=`date +%s` cw=25; echo # echo -e "${idsCL[Yellow]}Sensor Temperature(s) ${idsCL[Green]}normal${idsCL[Default]} /${idsCL[Yellow]}warning${idsCL[Default]}/ ${idsCL[Red]}critical${idsCL[Default]}" @@ -87,7 +88,7 @@ CHECKTEMP(){ echo fi done - + end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}" [ "${action}" != "" ] && echo }