This commit is contained in:
2024-01-09 16:13:42 -06:00
parent d76d229ea8
commit 216e781102
4 changed files with 8 additions and 8 deletions

View File

@@ -328,7 +328,7 @@ CHECKPOWER(){
[ "${STYPE}" == "" ] || [ "${STYPE}" == "offsite" ] && echo -e "${idsCL[LightCyan]}Offsite Total ${idsCL[Default]}: ${idsCL[LightGreen]}${SENSOR_TOTAL_AMPS_OFFSITE}'amps - `IDS_NUMBER_FORMAT ${SENSOR_TOTAL_WATTS_OFFSITE}`'watts"
fi
if [ ${REPORT} -eq 0 ]; then
end=`date +%s`; runtime=$((end-start)); echo -e "\n${idsCL[Default]}runtime: ${runtime}"
end=`date +%s`; runtime=$((end-start)); echo -e "\n${idsCL[Default]}runtime: ${runtime}s"
fi
[ "${PW_ACTION}" != "" ] && [ ${REPORT} -eq 0 ] && echo -e "${idsCL[Default]}"
}
@@ -565,7 +565,7 @@ Shutting down main servers" 1
#
# fi
end=`date +%s`; runtime=$((end-start))
# echo -e "Runtime: ${runtime}s"; [ ${runtime} -lt ${runEvery} ] && echo "Sleeping for $(expr ${runEvery} - ${runtime})s"
# echo -e "runtime: ${runtime}s"; [ ${runtime} -lt ${runEvery} ] && echo "Sleeping for $(expr ${runEvery} - ${runtime})s"
[ ${runtime} -lt ${runEvery} ] && sleep $(expr ${runEvery} - ${runtime})s ###|| echo "Not sleeping, ran for ${runtime}s previsoulsy"
done # &
}