fix for comment for PacketTimeWindow

This commit is contained in:
Stephen Birarda 2015-07-28 15:25:08 -07:00
parent cf30426636
commit b0147144cb
2 changed files with 2 additions and 2 deletions

View file

@ -80,7 +80,7 @@ void Connection::sendACK(bool wasCausedBySyncTimeout) {
if (wasCausedBySyncTimeout) {
// pack in the receive speed and estimatedBandwidth
ackPacket->writePrimitive(_receiveWindow.getPacketReceiveSpeed());
ackPacket->writePrimitive(_receiveWindow.getEstimatedBandwidth());
ackPacket->writePrimitive(_receiveWindow.getEstimatedBandwidth());
// record this as the last ACK send time
lastACKSendTime = high_resolution_clock::now();

View file

@ -75,7 +75,7 @@ private:
SentACKMap _sentACKs; // Map of ACK sub-sequence numbers to ACKed sequence number and sent time
PacketTimeWindow _receiveWindow; // Window of received packets for bandwidth estimation and receive speed
PacketTimeWindow _receiveWindow { 16, 64 }; // Window of interval between packets (16) and probes (64) for bandwidth and receive speed
std::unique_ptr<SendQueue> _sendQueue;
};