mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-21 12:44:58 +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
|
bool Service::IsFlapping(void) const
|
||||||
{
|
{
|
||||||
|
if (!GetEnableFlapping())
|
||||||
|
return false;
|
||||||
|
else
|
||||||
return GetFlappingCurrent() > GetFlappingThreshold();
|
return GetFlappingCurrent() > GetFlappingThreshold();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user