mirror of
https://github.com/Icinga/icinga2.git
synced 2025-05-19 14:00:19 +02:00
Checkable#next_update: always use #check_interval if !#enable_active_checks
This commit is contained in:
parent
e4c920b69e
commit
aa258685be
@ -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