aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2012-02-01 00:17:02 +0000
committerJustin Clark-Casey (justincc)2012-02-01 00:17:02 +0000
commite3680f216eeb631cd8955a708b1eee492566fa5c (patch)
tree70a3b344ac5a5b1eec5f2a4d96428f910673806c /OpenSim/Region/ScriptEngine/XEngine
parentMake script console commands only show for selected region. (diff)
downloadopensim-SC_OLD-e3680f216eeb631cd8955a708b1eee492566fa5c.zip
opensim-SC_OLD-e3680f216eeb631cd8955a708b1eee492566fa5c.tar.gz
opensim-SC_OLD-e3680f216eeb631cd8955a708b1eee492566fa5c.tar.bz2
opensim-SC_OLD-e3680f216eeb631cd8955a708b1eee492566fa5c.tar.xz
Add count of events queued for a particular script in "scripts show" console command
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index 459821b..13c5cd9 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -428,10 +428,15 @@ namespace OpenSim.Region.ScriptEngine.XEngine
428 status = "running"; 428 status = "running";
429 } 429 }
430 430
431 MainConsole.Instance.OutputFormat( 431 Queue eq = instance.EventQueue;
432 "{0}.{1}, item UUID {2}, prim UUID {3} @ {4} ({5})", 432
433 instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID, 433 lock (eq)
434 sop.AbsolutePosition, status); 434 {
435 MainConsole.Instance.OutputFormat(
436 "{0}.{1}, queued events = {2}, item UUID {3}, prim UUID {4} @ {5} ({6})",
437 instance.PrimName, instance.ScriptName, eq.Count, instance.ItemID, instance.ObjectID,
438 sop.AbsolutePosition, status);
439 }
435 } 440 }
436 441
437 private void HandleSuspendScript(IScriptInstance instance) 442 private void HandleSuspendScript(IScriptInstance instance)