From 0e3403833d5dc16f2783840ef69935abcd6794ee Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 31 Jul 2015 17:00:53 -0700 Subject: [PATCH] make capacitySpeedDelta a double --- libraries/networking/src/udt/CongestionControl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/networking/src/udt/CongestionControl.cpp b/libraries/networking/src/udt/CongestionControl.cpp index 8d8efec51e..16ee9a0c75 100644 --- a/libraries/networking/src/udt/CongestionControl.cpp +++ b/libraries/networking/src/udt/CongestionControl.cpp @@ -95,7 +95,7 @@ void DefaultCC::onACK(SequenceNumber ackNum) { return; } - int capacitySpeedDelta = (int) (_bandwidth - USECS_PER_SECOND / _packetSendPeriod); + double capacitySpeedDelta = (_bandwidth - USECS_PER_SECOND / _packetSendPeriod); // UDT uses what they call DAIMD - additive increase multiplicative decrease with decreasing increases // This factor is a protocol parameter that is part of the DAIMD algorithim