aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index 246f003..d59b761 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -161,6 +161,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
161 /// <summary>Total byte count of unacked packets sent to this client</summary> 161 /// <summary>Total byte count of unacked packets sent to this client</summary>
162 public int UnackedBytes; 162 public int UnackedBytes;
163 163
164 private int m_packetsUnAckReported;
164 /// <summary>Total number of received packets that we have reported to the OnPacketStats event(s)</summary> 165 /// <summary>Total number of received packets that we have reported to the OnPacketStats event(s)</summary>
165 private int m_packetsReceivedReported; 166 private int m_packetsReceivedReported;
166 /// <summary>Total number of sent packets that we have reported to the OnPacketStats event(s)</summary> 167 /// <summary>Total number of sent packets that we have reported to the OnPacketStats event(s)</summary>
@@ -389,11 +390,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
389 { 390 {
390 int newPacketsReceived = PacketsReceived - m_packetsReceivedReported; 391 int newPacketsReceived = PacketsReceived - m_packetsReceivedReported;
391 int newPacketsSent = PacketsSent - m_packetsSentReported; 392 int newPacketsSent = PacketsSent - m_packetsSentReported;
392 393 int newPacketUnAck = UnackedBytes - m_packetsUnAckReported;
393 callback(newPacketsReceived, newPacketsSent, UnackedBytes); 394 callback(newPacketsReceived, newPacketsSent, UnackedBytes);
394 395
395 m_packetsReceivedReported += newPacketsReceived; 396 m_packetsReceivedReported += newPacketsReceived;
396 m_packetsSentReported += newPacketsSent; 397 m_packetsSentReported += newPacketsSent;
398 m_packetsUnAckReported += newPacketUnAck;
397 } 399 }
398 } 400 }
399 401