diff options
author | Justin Clark-Casey (justincc) | 2012-03-16 03:32:14 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-19 21:32:34 +0000 |
commit | 04eb170624850fc1628a8b1d8f74a3f44fd56d92 (patch) | |
tree | c3b42d4977a67bb8c1ea4de2cb9238d4afcb1ccc /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |
parent | Improve threadpool reporting to "show threads" console command (also gets pri... (diff) | |
download | opensim-SC_OLD-04eb170624850fc1628a8b1d8f74a3f44fd56d92.zip opensim-SC_OLD-04eb170624850fc1628a8b1d8f74a3f44fd56d92.tar.gz opensim-SC_OLD-04eb170624850fc1628a8b1d8f74a3f44fd56d92.tar.bz2 opensim-SC_OLD-04eb170624850fc1628a8b1d8f74a3f44fd56d92.tar.xz |
refactor: separate out console and status report generation parts of XEngine
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs index 5a6b872..0ae6cdf 100644 --- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs +++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs | |||
@@ -380,6 +380,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
380 | if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_Scene)) | 380 | if (!(MainConsole.Instance.ConsoleScene == null || MainConsole.Instance.ConsoleScene == m_Scene)) |
381 | return; | 381 | return; |
382 | 382 | ||
383 | MainConsole.Instance.OutputFormat(GetStatusReport()); | ||
384 | } | ||
385 | |||
386 | public string GetStatusReport() | ||
387 | { | ||
383 | StringBuilder sb = new StringBuilder(); | 388 | StringBuilder sb = new StringBuilder(); |
384 | sb.AppendFormat("Status of XEngine instance for {0}\n", m_Scene.RegionInfo.RegionName); | 389 | sb.AppendFormat("Status of XEngine instance for {0}\n", m_Scene.RegionInfo.RegionName); |
385 | 390 | ||
@@ -407,7 +412,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine | |||
407 | Listener l = AsyncCommandManager.GetListenerPlugin(this); | 412 | Listener l = AsyncCommandManager.GetListenerPlugin(this); |
408 | sb.AppendFormat("Listeners : {0}\n", l.ListenerCount); | 413 | sb.AppendFormat("Listeners : {0}\n", l.ListenerCount); |
409 | 414 | ||
410 | MainConsole.Instance.OutputFormat(sb.ToString()); | 415 | return sb.ToString(); |
411 | } | 416 | } |
412 | 417 | ||
413 | public void HandleShowScripts(string module, string[] cmdparams) | 418 | public void HandleShowScripts(string module, string[] cmdparams) |