aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport
diff options
context:
space:
mode:
authormichele papalini <micpapal@cisco.com>2019-10-16 17:45:12 +0200
committermichele papalini <micpapal@cisco.com>2019-10-16 17:45:12 +0200
commit5d124413e2f97ecb7e874f6a1350ace85e283259 (patch)
treee7dfb7e9498ff69903813a07a499ae4a2e7f3a70 /libtransport
parentd5512f62df27252bebf2899a6452aedfffd40e92 (diff)
[HICN-335] fix max win computation in RTC consumer
Signed-off-by: michele papalini <micpapal@cisco.com> Change-Id: I735764cf2520182ae46bd2b18f1dc87355a57d85
Diffstat (limited to 'libtransport')
-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 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_);
}