Check if flapping is enabled.

This commit is contained in:
Gunnar Beutner 2013-08-29 14:13:18 +02:00
parent f334385111
commit 1742f3273e
1 changed files with 4 additions and 1 deletions

View File

@ -110,5 +110,8 @@ void Service::UpdateFlappingStatus(bool stateChange)
bool Service::IsFlapping(void) const
{
return GetFlappingCurrent() > GetFlappingThreshold();
if (!GetEnableFlapping())
return false;
else
return GetFlappingCurrent() > GetFlappingThreshold();
}