diff options
author | michele papalini <micpapal@cisco.com> | 2019-10-16 17:45:12 +0200 |
---|---|---|
committer | michele papalini <micpapal@cisco.com> | 2019-10-16 17:45:12 +0200 |
commit | 5d124413e2f97ecb7e874f6a1350ace85e283259 (patch) | |
tree | e7dfb7e9498ff69903813a07a499ae4a2e7f3a70 | |
parent | d5512f62df27252bebf2899a6452aedfffd40e92 (diff) |
[HICN-335] fix max win computation in RTC consumer
Signed-off-by: michele papalini <micpapal@cisco.com>
Change-Id: I735764cf2520182ae46bd2b18f1dc87355a57d85
-rw-r--r-- | libtransport/src/hicn/transport/protocols/rtc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libtransport/src/hicn/transport/protocols/rtc.cc b/libtransport/src/hicn/transport/protocols/rtc.cc index 92ef4ffbc..7cb577bba 100644 --- a/libtransport/src/hicn/transport/protocols/rtc.cc +++ b/libtransport/src/hicn/transport/protocols/rtc.cc @@ -332,7 +332,7 @@ void RTCTransportProtocol::computeMaxWindow(uint32_t productionRate, // currentState = RTC_NORMAL_STATE if (BDPWin != 0) { maxCWin_ = - (uint32_t)ceil((double)BDPWin + ((double)BDPWin / 10.0)); // BDP + 10% + (uint32_t)ceil((double)BDPWin + (((double)BDPWin * 30.0) / 100.0)); // BDP + 30% } else { maxCWin_ = min(maxWaintingInterest, maxCWin_); } |