diff options
author | Justin Clark-Casey (justincc) | 2012-06-13 02:25:42 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-06-13 02:25:42 +0100 |
commit | 94bbbf96c73f75e6cf72344081c0249ab276287e (patch) | |
tree | 0111d90321514263701c0965f89b89e38ac87809 /OpenSim/Region/Application/OpenSim.cs | |
parent | Don't include time to transmit response back to requester when assessing slow... (diff) | |
parent | Add variable timer configureation for the timer_Script (diff) | |
download | opensim-SC-94bbbf96c73f75e6cf72344081c0249ab276287e.zip opensim-SC-94bbbf96c73f75e6cf72344081c0249ab276287e.tar.gz opensim-SC-94bbbf96c73f75e6cf72344081c0249ab276287e.tar.bz2 opensim-SC-94bbbf96c73f75e6cf72344081c0249ab276287e.tar.xz |
Merge branch 'master' of ssh://opensimulator.org/var/git/opensim
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Application/OpenSim.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 9c38ebe..57a3c69 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs | |||
@@ -70,6 +70,7 @@ namespace OpenSim | |||
70 | private Regex m_consolePromptRegex = new Regex(@"([^\\])\\(\w)", RegexOptions.Compiled); | 70 | private Regex m_consolePromptRegex = new Regex(@"([^\\])\\(\w)", RegexOptions.Compiled); |
71 | 71 | ||
72 | private string m_timedScript = "disabled"; | 72 | private string m_timedScript = "disabled"; |
73 | private int m_timeInterval = 1200; | ||
73 | private Timer m_scriptTimer; | 74 | private Timer m_scriptTimer; |
74 | 75 | ||
75 | public OpenSim(IConfigSource configSource) : base(configSource) | 76 | public OpenSim(IConfigSource configSource) : base(configSource) |
@@ -99,6 +100,10 @@ namespace OpenSim | |||
99 | m_consolePort = (uint)networkConfig.GetInt("console_port", 0); | 100 | m_consolePort = (uint)networkConfig.GetInt("console_port", 0); |
100 | 101 | ||
101 | m_timedScript = startupConfig.GetString("timer_Script", "disabled"); | 102 | m_timedScript = startupConfig.GetString("timer_Script", "disabled"); |
103 | if (m_timedScript != "disabled") | ||
104 | { | ||
105 | m_timeInterval = startupConfig.GetInt("timer_Interval", 1200); | ||
106 | } | ||
102 | 107 | ||
103 | if (m_logFileAppender != null) | 108 | if (m_logFileAppender != null) |
104 | { | 109 | { |
@@ -216,7 +221,7 @@ namespace OpenSim | |||
216 | { | 221 | { |
217 | m_scriptTimer = new Timer(); | 222 | m_scriptTimer = new Timer(); |
218 | m_scriptTimer.Enabled = true; | 223 | m_scriptTimer.Enabled = true; |
219 | m_scriptTimer.Interval = 1200*1000; | 224 | m_scriptTimer.Interval = m_timeInterval*1000; |
220 | m_scriptTimer.Elapsed += RunAutoTimerScript; | 225 | m_scriptTimer.Elapsed += RunAutoTimerScript; |
221 | } | 226 | } |
222 | } | 227 | } |