Add count of events queued for a particular script in "scripts show" console command

0.7.2-post-fixes
Justin Clark-Casey (justincc) 2012-02-01 00:17:02 +00:00
parent 20a76fd224
commit 8c271802ac
1 changed files with 9 additions and 4 deletions

View File

@ -428,11 +428,16 @@ namespace OpenSim.Region.ScriptEngine.XEngine
status = "running";
}
Queue eq = instance.EventQueue;
lock (eq)
{
MainConsole.Instance.OutputFormat(
"{0}.{1}, item UUID {2}, prim UUID {3} @ {4} ({5})",
instance.PrimName, instance.ScriptName, instance.ItemID, instance.ObjectID,
"{0}.{1}, queued events = {2}, item UUID {3}, prim UUID {4} @ {5} ({6})",
instance.PrimName, instance.ScriptName, eq.Count, instance.ItemID, instance.ObjectID,
sop.AbsolutePosition, status);
}
}
private void HandleSuspendScript(IScriptInstance instance)
{