Only do flapping updates when services are in a hard state.

This commit is contained in:
Gunnar Beutner 2013-09-06 15:29:00 +02:00
parent ad5f96b190
commit df729d5514
1 changed files with 2 additions and 1 deletions

View File

@ -607,7 +607,8 @@ void Service::ProcessCheckResult(const Dictionary::Ptr& cr, const String& author
bool was_flapping, is_flapping;
was_flapping = IsFlapping();
UpdateFlappingStatus(stateChange);
if (GetStateType() == StateTypeHard)
UpdateFlappingStatus(stateChange);
is_flapping = IsFlapping();
olock.Unlock();