diff options
author | Diva Canto | 2013-07-16 17:53:05 -0700 |
---|---|---|
committer | Diva Canto | 2013-07-16 17:53:05 -0700 |
commit | d4720bd721b518efbc681df2f4e7d1ca35aa0f3c (patch) | |
tree | 5c2dc5760d5effaaf472c7f2bbb1b409bc709e56 /OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs | |
parent | Deleted a couple of verbose messages (diff) | |
download | opensim-SC_OLD-d4720bd721b518efbc681df2f4e7d1ca35aa0f3c.zip opensim-SC_OLD-d4720bd721b518efbc681df2f4e7d1ca35aa0f3c.tar.gz opensim-SC_OLD-d4720bd721b518efbc681df2f4e7d1ca35aa0f3c.tar.bz2 opensim-SC_OLD-d4720bd721b518efbc681df2f4e7d1ca35aa0f3c.tar.xz |
Added config var to fiddle with the Interval for the service throttle thread
Diffstat (limited to 'OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Framework/ServiceThrottle/ServiceThrottleModule.cs | 5 |
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 | } |