Checkable#next_update: always use #check_interval if !#enable_active_checks

This commit is contained in:
Alexander A. Klimov 2020-01-28 10:27:02 +01:00
parent e4c920b69e
commit aa258685be

View File

@ -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();