summaryrefslogtreecommitdiff
path: root/indra/llmessage/llpacketring.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2025-03-05 10:53:17 +0200
committerAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2025-03-05 13:32:46 +0200
commit5c2a331c44424722f069cd7a6b167f24de1afb83 (patch)
treee5d18597f510a5313dcc61e6f8ab6483c2fd93d1 /indra/llmessage/llpacketring.cpp
parent6ca6bdd629efd6aa01b452db4ba6c1c50d6961bf (diff)
#3644 Fix new logging of packet drops hitting performance #2
Misunderstood how mDroppedPackets worked, clear out what's not needed
Diffstat (limited to 'indra/llmessage/llpacketring.cpp')
-rw-r--r--indra/llmessage/llpacketring.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/llmessage/llpacketring.cpp b/indra/llmessage/llpacketring.cpp
index 470398152c..da3c502e9d 100644
--- a/indra/llmessage/llpacketring.cpp
+++ b/indra/llmessage/llpacketring.cpp
@@ -304,6 +304,8 @@ S32 LLPacketRing::drainSocket(S32 socket)
S32 num_dropped_packets = (num_loops - 1 + old_num_packets) - mNumBufferedPackets;
if (num_dropped_packets > 0)
{
+ // It will eventually be accounted by mDroppedPackets
+ // and mPacketsLost, but track it here for logging purposes.
mNumDroppedPackets += num_dropped_packets;
}
return (S32)(mNumBufferedPackets);