diff options
author | UbitUmarov | 2016-11-14 05:15:41 +0000 |
---|---|---|
committer | UbitUmarov | 2016-11-14 05:15:41 +0000 |
commit | e304acb06fddfd79ceedd6991f4c9f1a3fd08e79 (patch) | |
tree | d65be01da1e4efa06b3de1512d5acf4f43dc5f16 /OpenSim/Region/ClientStack/Linden/UDP | |
parent | reduce calls to physics world cast rays for camera collision check (diff) | |
download | opensim-SC-e304acb06fddfd79ceedd6991f4c9f1a3fd08e79.zip opensim-SC-e304acb06fddfd79ceedd6991f4c9f1a3fd08e79.tar.gz opensim-SC-e304acb06fddfd79ceedd6991f4c9f1a3fd08e79.tar.bz2 opensim-SC-e304acb06fddfd79ceedd6991f4c9f1a3fd08e79.tar.xz |
fix unack bytes stats report
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs | 4 |
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 | ||