mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-30 00:54:30 +02:00
Fire Checkable::OnFlappingChange only if flapping is enabled
refs #7885
This commit is contained in:
parent
cef4c46ba8
commit
0e24462064
@ -70,7 +70,9 @@ void Checkable::UpdateFlappingStatus(bool stateChange)
|
|||||||
|
|
||||||
double ee = GetLastCheckResult()->GetExecutionEnd();
|
double ee = GetLastCheckResult()->GetExecutionEnd();
|
||||||
|
|
||||||
OnFlappingChange(this, ee);
|
if (GetEnableFlapping() && IcingaApplication::GetInstance()->GetEnableFlapping()) {
|
||||||
|
OnFlappingChange(this, ee);
|
||||||
|
}
|
||||||
|
|
||||||
SetFlappingLastChange(ee);
|
SetFlappingLastChange(ee);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user