mirror of https://github.com/Icinga/icinga2.git
Check if flapping is enabled.
This commit is contained in:
parent
f334385111
commit
1742f3273e
|
@ -110,5 +110,8 @@ void Service::UpdateFlappingStatus(bool stateChange)
|
||||||
|
|
||||||
bool Service::IsFlapping(void) const
|
bool Service::IsFlapping(void) const
|
||||||
{
|
{
|
||||||
return GetFlappingCurrent() > GetFlappingThreshold();
|
if (!GetEnableFlapping())
|
||||||
|
return false;
|
||||||
|
else
|
||||||
|
return GetFlappingCurrent() > GetFlappingThreshold();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue