add rate limit
parent
6c31a9ac36
commit
6b1b104e1d
|
@ -11,8 +11,6 @@ using System.Linq;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using System.Security.Cryptography;
|
using System.Security.Cryptography;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading;
|
|
||||||
using System.Threading.Tasks;
|
|
||||||
using System.Timers;
|
using System.Timers;
|
||||||
|
|
||||||
[assembly: Addin("DataValueModule", "0.1")]
|
[assembly: Addin("DataValueModule", "0.1")]
|
||||||
|
@ -146,7 +144,7 @@ namespace OpenSim.Modules.DataValue
|
||||||
|
|
||||||
public void RemoveRegion(Scene scene)
|
public void RemoveRegion(Scene scene)
|
||||||
{
|
{
|
||||||
|
m_timer.Stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -160,10 +158,10 @@ namespace OpenSim.Modules.DataValue
|
||||||
if (m_enabledRateLimit)
|
if (m_enabledRateLimit)
|
||||||
{
|
{
|
||||||
if (m_rateLimit >= 100)
|
if (m_rateLimit >= 100)
|
||||||
Thread.Sleep(300);
|
System.Threading.Thread.Sleep(300);
|
||||||
|
|
||||||
if (m_rateLimit >= 200)
|
if (m_rateLimit >= 200)
|
||||||
Thread.Sleep(600);
|
System.Threading.Thread.Sleep(600);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue