Commit 384da8d8 authored by Pavel Vainerman's avatar Pavel Vainerman

(unet): fixed lostPackets calculation

parent d53b3c49
...@@ -729,7 +729,7 @@ UNetReceiver::ReceiveRetCode UNetReceiver::receive() noexcept ...@@ -729,7 +729,7 @@ UNetReceiver::ReceiveRetCode UNetReceiver::receive() noexcept
<< ")" << ")"
<< endl; << endl;
lostPackets = pack->header.num > wnum ? (pack->header.num - wnum - 1) : lostPackets + 1; lostPackets += pack->header.num > wnum ? (pack->header.num - wnum - 1) : 1;
// реинициализируем позицию для чтения // реинициализируем позицию для чтения
rnum = pack->header.num; rnum = pack->header.num;
wnum = pack->header.num + 1; wnum = pack->header.num + 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment