| 544 | } |
| 545 | |
| 546 | void Downtime::DowntimesStartTimerHandler() |
| 547 | { |
| 548 | /* Start fixed downtimes. Flexible downtimes will be triggered on-demand. */ |
| 549 | for (const Downtime::Ptr& downtime : ConfigType::GetObjectsByType<Downtime>()) { |
| 550 | if (downtime->IsActive() && |
| 551 | downtime->CanBeTriggered() && |
| 552 | downtime->GetFixed()) { |
| 553 | /* Send notifications. */ |
| 554 | OnDowntimeStarted(downtime); |
| 555 | |
| 556 | /* Trigger fixed downtime immediately. */ |
| 557 | downtime->TriggerDowntime(std::fmax(downtime->GetStartTime(), downtime->GetEntryTime())); |
| 558 | } |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | void Downtime::DowntimesOrphanedTimerHandler() |
| 563 | { |
nothing calls this directly
no test coverage detected