Bugfix for triggered downtimes.

This commit is contained in:
Gunnar Beutner 2013-02-09 15:22:46 +01:00
parent c44ad7b06b
commit a649a91cdc
1 changed files with 3 additions and 3 deletions

View File

@ -553,11 +553,11 @@ void Service::ApplyCheckResult(const Dictionary::Ptr& cr)
if (service)
service->SetNextCheck(Utility::GetTime());
}
if (GetState() != StateOK)
TriggerDowntimes();
}
if (GetState() != StateOK)
TriggerDowntimes();
if (GetStateType() == StateTypeHard && (old_state != GetState() || old_stateType == StateTypeSoft)) {
SetLastHardStateChange(now);