mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
delay terrain sending if land queue is 2 busy
This commit is contained in:
@@ -474,6 +474,20 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
public int GetCatBytesInSendQueue(ThrottleOutPacketType cat)
|
||||
{
|
||||
;
|
||||
int icat = (int)cat;
|
||||
if (icat > 0 && icat < THROTTLE_CATEGORY_COUNT)
|
||||
{
|
||||
TokenBucket bucket = m_throttleCategories[icat];
|
||||
return m_packetOutboxes[icat].Count;
|
||||
}
|
||||
else
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
public int GetCatBytesCanSend(ThrottleOutPacketType cat, int timeMS)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user