diff --git a/RTCP/Cobalt/CoInterface/src/BudgetTimer.cc b/RTCP/Cobalt/CoInterface/src/BudgetTimer.cc index 89ba3fa92e158b002d78b6c049c04f7d6865f1f3..f2772ca9e9535ed6d02f387c671c4545700126e1 100644 --- a/RTCP/Cobalt/CoInterface/src/BudgetTimer.cc +++ b/RTCP/Cobalt/CoInterface/src/BudgetTimer.cc @@ -45,7 +45,9 @@ namespace LOFAR { const double realTimePerc = 100.0 * getAverage() / budget; if (log_on_destruction) { - if (realTimePerc >= 100.0) { + if (getCount() == 0) { + LOG_DEBUG_STR(std::left << std::setw(25) << itsName << ": did not run"); + } else if (realTimePerc >= 100.0) { LOG_ERROR_STR(std::left << std::setw(25) << itsName << ": ran at " << realTimePerc << "% of run-time budget"); } else { LOG_INFO_STR(std::left << std::setw(25) << itsName << ": ran at " << realTimePerc << "% of run-time budget");