mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
use max and not min for CW clamp
This commit is contained in:
parent
c0219d9ddf
commit
456bcbca67
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ void TCPVegasCC::performCongestionAvoidance(udt::SequenceNumber ack) {
|
|||
|
||||
// we never allow the congestion window to be smaller than two packets
|
||||
static int VEGAS_CW_MIN_PACKETS = 2;
|
||||
_congestionWindowSize = std::min(_congestionWindowSize, VEGAS_CW_MIN_PACKETS);
|
||||
_congestionWindowSize = std::max(_congestionWindowSize, VEGAS_CW_MIN_PACKETS);
|
||||
|
||||
// mark this as the last adjustment time
|
||||
_lastAdjustmentTime = p_high_resolution_clock::now();
|
||||
|
|
Loading…
Reference in a new issue