From 5d124413e2f97ecb7e874f6a1350ace85e283259 Mon Sep 17 00:00:00 2001 From: michele papalini Date: Wed, 16 Oct 2019 17:45:12 +0200 Subject: [HICN-335] fix max win computation in RTC consumer Signed-off-by: michele papalini Change-Id: I735764cf2520182ae46bd2b18f1dc87355a57d85 --- libtransport/src/hicn/transport/protocols/rtc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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_); } -- cgit 1.2.3-korg