| 27 | } |
| 28 | |
| 29 | static void LogFlapping(const Checkable::Ptr& obj) |
| 30 | { |
| 31 | std::bitset<20> stateChangeBuf = obj->GetFlappingBuffer(); |
| 32 | int oldestIndex = (obj->GetFlappingBuffer() & 0xFF00000) >> 20; |
| 33 | |
| 34 | std::cout << "Flapping: " << obj->IsFlapping() << "\nHT: " << obj->GetFlappingThresholdHigh() << " LT: " |
| 35 | << obj->GetFlappingThresholdLow() << "\nOur value: " << obj->GetFlappingCurrent() << "\nPtr: " << oldestIndex |
| 36 | << " Buf: " << stateChangeBuf.to_ulong() << '\n'; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | static void LogHostStatus(const Host::Ptr &host) |
no test coverage detected