aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
diff options
context:
space:
mode:
authorMelanie2009-10-01 22:35:57 +0100
committerMelanie2009-10-01 22:35:57 +0100
commit54a912bb9cd5148abfa5eb68b0146ae3b04051a3 (patch)
tree191f0f876f2d9389fda297e20b98574fb8f9592b /OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
parentAdd "dump asset" command to remote asset connector (the only one that uses a (diff)
downloadopensim-SC_OLD-54a912bb9cd5148abfa5eb68b0146ae3b04051a3.zip
opensim-SC_OLD-54a912bb9cd5148abfa5eb68b0146ae3b04051a3.tar.gz
opensim-SC_OLD-54a912bb9cd5148abfa5eb68b0146ae3b04051a3.tar.bz2
opensim-SC_OLD-54a912bb9cd5148abfa5eb68b0146ae3b04051a3.tar.xz
Add a method to determine the count of packets in a throttle
Diffstat (limited to 'OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs')
-rw-r--r--OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
index f08f1b6..d4d654f 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLPacketQueue.cs
@@ -753,5 +753,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP
753 { 753 {
754 get { return throttleMultiplier; } 754 get { return throttleMultiplier; }
755 } 755 }
756
757 public int GetQueueCount(ThrottleOutPacketType queue)
758 {
759 switch (queue)
760 {
761 case ThrottleOutPacketType.Land:
762 return LandOutgoingPacketQueue.Count;
763 case ThrottleOutPacketType.Wind:
764 return WindOutgoingPacketQueue.Count;
765 case ThrottleOutPacketType.Cloud:
766 return CloudOutgoingPacketQueue.Count;
767 case ThrottleOutPacketType.Task:
768 return TaskOutgoingPacketQueue.Count;
769 case ThrottleOutPacketType.Texture:
770 return TextureOutgoingPacketQueue.Count;
771 case ThrottleOutPacketType.Asset:
772 return AssetOutgoingPacketQueue.Count;
773 }
774
775 return 0;
776 }
756 } 777 }
757} 778}