mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-27 15:44:11 +02:00
Merge pull request #7789 from Icinga/feature/nextupdate-passive
Checkable#next_update: always use #check_interval if !#enable_active_checks
This commit is contained in:
commit
b8d518bce7
@ -195,7 +195,7 @@ Timestamp Checkable::GetNextUpdate() const
|
|||||||
double interval, latency;
|
double interval, latency;
|
||||||
|
|
||||||
if (cr) {
|
if (cr) {
|
||||||
interval = GetProblem() && GetStateType() == StateTypeSoft ? GetRetryInterval() : GetCheckInterval();
|
interval = GetEnableActiveChecks() && GetProblem() && GetStateType() == StateTypeSoft ? GetRetryInterval() : GetCheckInterval();
|
||||||
latency = cr->GetExecutionEnd() - cr->GetScheduleStart();
|
latency = cr->GetExecutionEnd() - cr->GetScheduleStart();
|
||||||
} else {
|
} else {
|
||||||
interval = GetCheckInterval();
|
interval = GetCheckInterval();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user