mirror of
https://github.com/Icinga/icinga2.git
synced 2025-04-08 17:05:25 +02:00
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
|
||||
{
|
||||
return GetFlappingCurrent() > GetFlappingThreshold();
|
||||
if (!GetEnableFlapping())
|
||||
return false;
|
||||
else
|
||||
return GetFlappingCurrent() > GetFlappingThreshold();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user