"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/icinga/checkable-flapping.cpp" between
icinga2-2.11.5.tar.gz and icinga2-2.12.0.tar.gz

About: Icinga 2 is an enterprise grade monitoring system which keeps watch over networks and any conceivable network resource.

checkable-flapping.cpp  (icinga2-2.11.5):checkable-flapping.cpp  (icinga2-2.12.0)
skipping to change at line 67 skipping to change at line 67
bool flapping; bool flapping;
if (GetFlapping()) if (GetFlapping())
flapping = flappingValue > GetFlappingThresholdLow(); flapping = flappingValue > GetFlappingThresholdLow();
else else
flapping = flappingValue > GetFlappingThresholdHigh(); flapping = flappingValue > GetFlappingThresholdHigh();
SetFlappingBuffer(stateChangeBuf.GetValue()); SetFlappingBuffer(stateChangeBuf.GetValue());
SetFlappingIndex(oldestIndex); SetFlappingIndex(oldestIndex);
SetFlappingCurrent(flappingValue); SetFlappingCurrent(flappingValue);
SetFlapping(flapping, true);
if (flapping != GetFlapping()) if (flapping != GetFlapping()) {
SetFlappingLastChange(Utility::GetTime()); SetFlapping(flapping, true);
double ee = GetLastCheckResult()->GetExecutionEnd();
if (GetEnableFlapping() && IcingaApplication::GetInstance()->GetE
nableFlapping()) {
OnFlappingChange(this, ee);
}
SetFlappingLastChange(ee);
}
} }
bool Checkable::IsFlapping() const bool Checkable::IsFlapping() const
{ {
if (!GetEnableFlapping() || !IcingaApplication::GetInstance()->GetEnableF lapping()) if (!GetEnableFlapping() || !IcingaApplication::GetInstance()->GetEnableF lapping())
return false; return false;
else else
return GetFlapping(); return GetFlapping();
} }
 End of changes. 2 change blocks. 
3 lines changed or deleted 12 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)