mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 09:16:28 +08:00
make m_minimumDripRate a bit larger than mtu. Add a bucket space check that does not consume avaiable space, so reducing bandwidth
This commit is contained in:
@@ -60,7 +60,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
protected const float m_minimumDripRate = 1400;
|
||||
protected const float m_minimumDripRate = 1500;
|
||||
|
||||
/// <summary>Time of the last drip, in system ticks</summary>
|
||||
protected Int32 m_lastDrip;
|
||||
@@ -286,6 +286,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
|
||||
return false;
|
||||
}
|
||||
|
||||
public bool CheckTokens(int amount)
|
||||
{
|
||||
return (m_tokenCount - amount >= 0);
|
||||
}
|
||||
|
||||
public int GetCatBytesCanSend(int timeMS)
|
||||
{
|
||||
// return (int)(m_tokenCount + timeMS * m_dripRate * 1e-3);
|
||||
|
||||
Reference in New Issue
Block a user