aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs4
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs7
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs12
3 files changed, 12 insertions, 11 deletions
diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs
index 223b4a5..1754f7e 100644
--- a/OpenSim/Region/Application/OpenSimMain.cs
+++ b/OpenSim/Region/Application/OpenSimMain.cs
@@ -720,8 +720,8 @@ namespace OpenSim
720 m_log.Error("show modules - shows info aboutloaded modules."); 720 m_log.Error("show modules - shows info aboutloaded modules.");
721 m_log.Error("stats - statistical information for this server not displayed in the client"); 721 m_log.Error("stats - statistical information for this server not displayed in the client");
722 m_log.Error("shutdown - disconnect all clients and shutdown."); 722 m_log.Error("shutdown - disconnect all clients and shutdown.");
723 m_log.Error("config set category field value - set a config value"); 723 m_log.Error("config set section field value - set a config value");
724 m_log.Error("config get category field - get a config value"); 724 m_log.Error("config get section field - get a config value");
725 m_log.Error("config save - save OpenSim.ini"); 725 m_log.Error("config save - save OpenSim.ini");
726 m_log.Error("terrain help - show help for terrain commands."); 726 m_log.Error("terrain help - show help for terrain commands.");
727 break; 727 break;
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
index ae6f001..57e56d4 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/MaintenanceThread.cs
@@ -90,12 +90,12 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
90 m_ScriptEngine.Log.Warn(m_ScriptEngine.ScriptEngineName, 90 m_ScriptEngine.Log.Warn(m_ScriptEngine.ScriptEngineName,
91 "Configuration error: MaxEventExecutionTimeMs is less than MaintenanceLoopms. The Maintenance Loop will only check scripts once per run."); 91 "Configuration error: MaxEventExecutionTimeMs is less than MaintenanceLoopms. The Maintenance Loop will only check scripts once per run.");
92 92
93 long Last_maxFunctionExecutionTimens = 0; // DateTime.Now.Ticks;
94 long Last_ReReadConfigFilens = DateTime.Now.Ticks;
93 while (true) 95 while (true)
94 { 96 {
95 try 97 try
96 { 98 {
97 long Last_maxFunctionExecutionTimens = 0; // DateTime.Now.Ticks;
98 long Last_ReReadConfigFilens = DateTime.Now.Ticks;
99 while (true) 99 while (true)
100 { 100 {
101 System.Threading.Thread.Sleep(MaintenanceLoopms); // Sleep before next pass 101 System.Threading.Thread.Sleep(MaintenanceLoopms); // Sleep before next pass
@@ -107,11 +107,12 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
107 // 107 //
108 // Re-reading config every x seconds 108 // Re-reading config every x seconds
109 // 109 //
110 if (m_ScriptEngine.RefreshConfigFileSeconds > 0) 110 if (m_ScriptEngine.RefreshConfigFilens > 0)
111 { 111 {
112 // Check if its time to re-read config 112 // Check if its time to re-read config
113 if (DateTime.Now.Ticks - Last_ReReadConfigFilens > m_ScriptEngine.RefreshConfigFilens) 113 if (DateTime.Now.Ticks - Last_ReReadConfigFilens > m_ScriptEngine.RefreshConfigFilens)
114 { 114 {
115 //Console.WriteLine("Time passed: " + (DateTime.Now.Ticks - Last_ReReadConfigFilens) + ">" + m_ScriptEngine.RefreshConfigFilens );
115 // Its time to re-read config file 116 // Its time to re-read config file
116 m_ScriptEngine.ReadConfig(); 117 m_ScriptEngine.ReadConfig();
117 Last_ReReadConfigFilens = DateTime.Now.Ticks; // Reset time 118 Last_ReReadConfigFilens = DateTime.Now.Ticks; // Reset time
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs
index 4cf39b4..f09e631 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs
@@ -61,10 +61,10 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
61 /// How many seconds between re-reading config-file. 0 = never. ScriptEngine will try to adjust to new config changes. 61 /// How many seconds between re-reading config-file. 0 = never. ScriptEngine will try to adjust to new config changes.
62 /// </summary> 62 /// </summary>
63 public int RefreshConfigFileSeconds { 63 public int RefreshConfigFileSeconds {
64 get { return (int)(RefreshConfigFilens / 10000); } 64 get { return (int)(RefreshConfigFilens / 10000000); }
65 set { RefreshConfigFilens = value * 10000; } 65 set { RefreshConfigFilens = value * 10000000; }
66 } 66 }
67 public long RefreshConfigFilens = 0; 67 public long RefreshConfigFilens;
68 68
69 public ScriptManager GetScriptManager() 69 public ScriptManager GetScriptManager()
70 { 70 {
@@ -131,9 +131,9 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
131 } 131 }
132 public void ReadConfig() 132 public void ReadConfig()
133 { 133 {
134#if DEBUG 134//#if DEBUG
135 Log.Debug(ScriptEngineName, "Refreshing configuration for all modules"); 135// Log.Debug(ScriptEngineName, "Refreshing configuration for all modules");
136#endif 136//#endif
137 RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30); 137 RefreshConfigFileSeconds = ScriptConfigSource.GetInt("RefreshConfig", 30);
138 138
139 // Reload from disk? No! 139 // Reload from disk? No!