diff options
author | Tedd Hansen | 2008-02-02 07:53:13 +0000 |
---|---|---|
committer | Tedd Hansen | 2008-02-02 07:53:13 +0000 |
commit | 785b641272f0e41c50d42406496baee10e5303a9 (patch) | |
tree | f6e37734d8e5b5e98d1dbf7e6a01b82b41773ea2 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | |
parent | Added commands to change config file from console: (diff) | |
download | opensim-SC-785b641272f0e41c50d42406496baee10e5303a9.zip opensim-SC-785b641272f0e41c50d42406496baee10e5303a9.tar.gz opensim-SC-785b641272f0e41c50d42406496baee10e5303a9.tar.bz2 opensim-SC-785b641272f0e41c50d42406496baee10e5303a9.tar.xz |
fixed a timing bug in config re-read. Apparently there is 1000000000 ns in one second...
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/ScriptEngine.cs | 12 |
1 files changed, 6 insertions, 6 deletions
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! |