mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 22:26:09 +08:00
Add a method to determine the count of packets in a throttle
This commit is contained in:
@@ -753,5 +753,26 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
{
|
||||
get { return throttleMultiplier; }
|
||||
}
|
||||
|
||||
public int GetQueueCount(ThrottleOutPacketType queue)
|
||||
{
|
||||
switch (queue)
|
||||
{
|
||||
case ThrottleOutPacketType.Land:
|
||||
return LandOutgoingPacketQueue.Count;
|
||||
case ThrottleOutPacketType.Wind:
|
||||
return WindOutgoingPacketQueue.Count;
|
||||
case ThrottleOutPacketType.Cloud:
|
||||
return CloudOutgoingPacketQueue.Count;
|
||||
case ThrottleOutPacketType.Task:
|
||||
return TaskOutgoingPacketQueue.Count;
|
||||
case ThrottleOutPacketType.Texture:
|
||||
return TextureOutgoingPacketQueue.Count;
|
||||
case ThrottleOutPacketType.Asset:
|
||||
return AssetOutgoingPacketQueue.Count;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user