Disable Flapping detection on Windows

This commit is contained in:
Michael Friedrich 2017-11-17 12:59:07 +01:00
parent 21efdae8b7
commit 35f0df3fe5
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,8 @@ using namespace icinga;
void Checkable::UpdateFlappingStatus(bool stateChange)
{
/* TODO: Add support for Windows satellites/masters. */
#ifndef _WIN32 /* _WIN32 */
std::bitset<20> stateChangeBuf = GetFlappingBuffer();
int oldestIndex = GetFlappingIndex();
@ -56,6 +58,8 @@ void Checkable::UpdateFlappingStatus(bool stateChange)
if (flapping != GetFlapping())
SetFlappingLastChange(Utility::GetTime());
#endif /* _WIN32 */
}
bool Checkable::IsFlapping(void) const