summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-10-16 16:21:00 +0000
committerGerrit Code Review <gerrit@fd.io>2019-10-16 16:21:00 +0000
commitbadbec7fcbb0c1fb63a6a1dbfc72ad4ca04c89d6 (patch)
treecaffbd8a556a312ff64bad8de80be818eb5a0775
parentd663e0a82f626172049d38129292433701b62990 (diff)
parent5d124413e2f97ecb7e874f6a1350ace85e283259 (diff)
Merge "[HICN-335] fix max win computation in RTC consumer"
-rw-r--r--libtransport/src/hicn/transport/protocols/rtc.cc2
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 0b02db438..ba8f549c3 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_);
}