mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 13:44:36 +02:00
restore wasted byte count when unable to fit stats
This commit is contained in:
parent
badbe98097
commit
1fe7718b9f
1 changed files with 3 additions and 3 deletions
|
@ -232,9 +232,9 @@ int OctreeSendThread::handlePacketSend(SharedNodePointer node, OctreeQueryNode*
|
||||||
numBytes = nodeData->getPacket().getDataSize();
|
numBytes = nodeData->getPacket().getDataSize();
|
||||||
_totalBytes += numBytes;
|
_totalBytes += numBytes;
|
||||||
_totalPackets++;
|
_totalPackets++;
|
||||||
// since a stats message is only included on end of scene, don't consider any of these bytes "wasted"
|
// we count wasted bytes here because we were unable to fit the stats packet
|
||||||
// there was nothing else to send.
|
thisWastedBytes = udt::MAX_PACKET_SIZE - numBytes;
|
||||||
//_totalWastedBytes += 0;
|
_totalWastedBytes += thisWastedBytes;
|
||||||
_trueBytesSent += numBytes;
|
_trueBytesSent += numBytes;
|
||||||
numPackets++;
|
numPackets++;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue