mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7890 from Icinga/bugfix/icingadb-flapping-history-more-ends-than-starts-7885
Fire Checkable::OnFlappingChange only if flapping is enabled
This commit is contained in:
commit
2c467bbfef
|
@ -70,7 +70,9 @@ void Checkable::UpdateFlappingStatus(bool stateChange)
|
|||
|
||||
double ee = GetLastCheckResult()->GetExecutionEnd();
|
||||
|
||||
OnFlappingChange(this, ee);
|
||||
if (GetEnableFlapping() && IcingaApplication::GetInstance()->GetEnableFlapping()) {
|
||||
OnFlappingChange(this, ee);
|
||||
}
|
||||
|
||||
SetFlappingLastChange(ee);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue