| 560 | } |
| 561 | |
| 562 | void Downtime::DowntimesOrphanedTimerHandler() |
| 563 | { |
| 564 | for (const Downtime::Ptr& downtime : ConfigType::GetObjectsByType<Downtime>()) { |
| 565 | /* Only remove downtimes which are activated after daemon start. */ |
| 566 | if (downtime->IsActive() && !downtime->HasValidConfigOwner()) |
| 567 | RemoveDowntime(downtime->GetName(), false, DowntimeRemovedByConfigOwner); |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | void Downtime::ValidateStartTime(const Lazy<Timestamp>& lvalue, const ValidationUtils& utils) |
| 572 | { |
nothing calls this directly
no test coverage detected