Commit 68dc7954 authored by Christian Sponfeldner's avatar Christian Sponfeldner

fix place value error in timeout of connection monitoring

parent c7580170
......@@ -25,7 +25,7 @@ private:
static constexpr double DOWNLINK_HEARTBEAT_INTERVAL_SEC = Ethprotocol::GetDownlinkHeartbeatIntervalInSec();
static constexpr double TOLERANCE_FOR_DOWNLINK_HEARTBEAT_INTERVAL_SEC = 0.001;
static constexpr uint32_t TIMEOUT_FOR_DOWNLINK_HEARTBEAT_NANOSEC = static_cast<uint32_t>((10E6)*(DOWNLINK_HEARTBEAT_INTERVAL_SEC + TOLERANCE_FOR_DOWNLINK_HEARTBEAT_INTERVAL_SEC));
static constexpr uint32_t TIMEOUT_FOR_DOWNLINK_HEARTBEAT_NANOSEC = static_cast<uint32_t>((1E6)*(DOWNLINK_HEARTBEAT_INTERVAL_SEC + TOLERANCE_FOR_DOWNLINK_HEARTBEAT_INTERVAL_SEC));
static constexpr int32_t LEAKY_BUCKET_ERROR_THRESHOLD = 30; // at this level (or higher) of "error points" the leaky bucket will report an error
static constexpr int32_t LEAKY_BUCKET_ERROR_EMPHASIS = 6; // amount of "error points" added into the leaky bucket if a timeout occured when calling update()
static constexpr int32_t LEAKY_BUCKET_SUCCESS_EMPHASIS = 3; // amount of "error points" taken out of leaky bucket at a call to setEvent()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment