aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-10-02 23:49:37 +0100
committerJustin Clark-Casey (justincc)2014-11-25 23:18:39 +0000
commit51eb8facd6734bbdc57718f4adf065af38e0a87d (patch)
tree43e45a341bf56d0e10c5e7ce9789b959bb010e62 /OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
parentminor: Remove compiler warnings from unused fields in TokenBucket (diff)
downloadopensim-SC-51eb8facd6734bbdc57718f4adf065af38e0a87d.zip
opensim-SC-51eb8facd6734bbdc57718f4adf065af38e0a87d.tar.gz
opensim-SC-51eb8facd6734bbdc57718f4adf065af38e0a87d.tar.bz2
opensim-SC-51eb8facd6734bbdc57718f4adf065af38e0a87d.tar.xz
Add OutgoingPacketsQueuedCount clientstack stat.
This is the total of queued outgoing packets across all connections, as also seen in the "show queues" command. Gives some early indication of whether the simulator can't send all outgoing packets fast enough. Though then one would want to check that this isn't due to a few bad client connections.
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index d8ca343..3f2a340 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -320,6 +320,33 @@ namespace OpenSim.Region.ClientStack.LindenUDP
320 } 320 }
321 321
322 /// <summary> 322 /// <summary>
323 /// Get the total number of pakcets queued for this client.
324 /// </summary>
325 /// <returns></returns>
326 public int GetTotalPacketsQueuedCount()
327 {
328 int total = 0;
329
330 for (int i = 0; i <= (int)ThrottleOutPacketType.Asset; i++)
331 total += m_packetOutboxes[i].Count;
332
333 return total;
334 }
335
336 /// <summary>
337 /// Get the number of packets queued for the given throttle type.
338 /// </summary>
339 /// <returns></returns>
340 /// <param name="throttleType"></param>
341 public int GetPacketsQueuedCount(ThrottleOutPacketType throttleType)
342 {
343 if ((int)throttleType > 0)
344 return m_packetOutboxes[(int)throttleType].Count;
345 else
346 return 0;
347 }
348
349 /// <summary>
323 /// Return statistics information about client packet queues. 350 /// Return statistics information about client packet queues.
324 /// </summary> 351 /// </summary>
325 /// <remarks> 352 /// <remarks>