aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim')
-rw-r--r--OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs b/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs
index 553e4ca..a3ca6d6 100644
--- a/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs
@@ -54,11 +54,14 @@ namespace OpenSim.Region.CoreModules.Framework
54 // private OpenSim.Framework.DoubleQueue<GridRegionRequest> m_RequestQueue = new OpenSim.Framework.DoubleQueue<GridRegionRequest>(); 54 // private OpenSim.Framework.DoubleQueue<GridRegionRequest> m_RequestQueue = new OpenSim.Framework.DoubleQueue<GridRegionRequest>();
55 //private Queue<GridRegionRequest> m_RequestQueue = new Queue<GridRegionRequest>(); 55 //private Queue<GridRegionRequest> m_RequestQueue = new Queue<GridRegionRequest>();
56 private Queue<Action> m_RequestQueue = new Queue<Action>(); 56 private Queue<Action> m_RequestQueue = new Queue<Action>();
57 private int m_Interval;
57 58
58 #region ISharedRegionModule 59 #region ISharedRegionModule
59 60
60 public void Initialise(IConfigSource config) 61 public void Initialise(IConfigSource config)
61 { 62 {
63 m_Interval = Util.GetConfigVarFromSections<int>(config, "Interval", new string[] { "ServiceThrottle" }, 2000);
64
62 m_timer = new System.Timers.Timer(); 65 m_timer = new System.Timers.Timer();
63 m_timer.AutoReset = false; 66 m_timer.AutoReset = false;
64 m_timer.Enabled = true; 67 m_timer.Enabled = true;
@@ -131,7 +134,7 @@ namespace OpenSim.Region.CoreModules.Framework
131 { 134 {
132 if (!m_timer.Enabled) 135 if (!m_timer.Enabled)
133 { 136 {
134 m_timer.Interval = 1000; 137 m_timer.Interval = m_Interval;
135 m_timer.Enabled = true; 138 m_timer.Enabled = true;
136 m_timer.Start(); 139 m_timer.Start();
137 } 140 }