diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs b/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs index f769383..0f71222 100644 --- a/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs +++ b/OpenSim/Region/ClientStack/Linden/UDP/TokenBucket.cs | |||
@@ -60,7 +60,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
60 | 60 | ||
61 | /// <summary> | 61 | /// <summary> |
62 | /// </summary> | 62 | /// </summary> |
63 | protected const float m_minimumDripRate = 1400; | 63 | protected const float m_minimumDripRate = 1500; |
64 | 64 | ||
65 | /// <summary>Time of the last drip, in system ticks</summary> | 65 | /// <summary>Time of the last drip, in system ticks</summary> |
66 | protected Int32 m_lastDrip; | 66 | protected Int32 m_lastDrip; |
@@ -286,6 +286,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
286 | return false; | 286 | return false; |
287 | } | 287 | } |
288 | 288 | ||
289 | public bool CheckTokens(int amount) | ||
290 | { | ||
291 | return (m_tokenCount - amount >= 0); | ||
292 | } | ||
293 | |||
289 | public int GetCatBytesCanSend(int timeMS) | 294 | public int GetCatBytesCanSend(int timeMS) |
290 | { | 295 | { |
291 | // return (int)(m_tokenCount + timeMS * m_dripRate * 1e-3); | 296 | // return (int)(m_tokenCount + timeMS * m_dripRate * 1e-3); |