mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 19:30:41 +02:00
NAK interval is in microseconds
This commit is contained in:
parent
cb134f4685
commit
b9b4245dfe
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ void Connection::sync() {
|
|||
// we do this if it has been longer than the current nakInterval since we last sent
|
||||
auto now = high_resolution_clock::now();
|
||||
|
||||
if (duration_cast<milliseconds>(now - _lastNAKTime).count() >= _nakInterval) {
|
||||
if (duration_cast<microseconds>(now - _lastNAKTime).count() >= _nakInterval) {
|
||||
// construct a NAK packet that will hold all of the lost sequence numbers
|
||||
auto lossListPacket = ControlPacket::create(ControlPacket::TimeoutNAK, _lossList.getLength() * sizeof(SequenceNumber));
|
||||
|
||||
|
|
Loading…
Reference in a new issue