mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
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();
|
double ee = GetLastCheckResult()->GetExecutionEnd();
|
||||||
|
|
||||||
|
if (GetEnableFlapping() && IcingaApplication::GetInstance()->GetEnableFlapping()) {
|
||||||
OnFlappingChange(this, ee);
|
OnFlappingChange(this, ee);
|
||||||
|
}
|
||||||
|
|
||||||
SetFlappingLastChange(ee);
|
SetFlappingLastChange(ee);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user