mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
add a comment for ack count calculations
This commit is contained in:
parent
5bd6cc9fac
commit
22e0e649b1
1 changed files with 3 additions and 0 deletions
|
@ -263,6 +263,9 @@ void TCPVegasCC::performRenoCongestionAvoidance(SequenceNumber ack) {
|
|||
// increase the window size by (1 / window size) for every ACK received
|
||||
_ackAICount += numAcked;
|
||||
if (_ackAICount >= preAIWindowSize) {
|
||||
// when _ackAICount % preAIWindowSize == 0 then _ackAICount is 0
|
||||
// when _ackAICount % preAIWindowSize != 0 then _ackAICount is _ackAICount - (_ackAICount % preAIWindowSize)
|
||||
|
||||
int delta = _ackAICount / preAIWindowSize;
|
||||
|
||||
_ackAICount -= delta * preAIWindowSize;
|
||||
|
|
Loading…
Reference in a new issue