aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
index 0ae7617..4b541e6 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLUDPClient.cs
@@ -474,6 +474,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
474 474
475 return data; 475 return data;
476 } 476 }
477
478 public int GetCatBytesInSendQueue(ThrottleOutPacketType cat)
479 {
480 ;
481 int icat = (int)cat;
482 if (icat > 0 && icat < THROTTLE_CATEGORY_COUNT)
483 {
484 TokenBucket bucket = m_throttleCategories[icat];
485 return m_packetOutboxes[icat].Count;
486 }
487 else
488 return 0;
489 }
490
477 491
478 public int GetCatBytesCanSend(ThrottleOutPacketType cat, int timeMS) 492 public int GetCatBytesCanSend(ThrottleOutPacketType cat, int timeMS)
479 { 493 {