From 538a95ff1e93c6266bb2c269e9f92a5cb7dce10e Mon Sep 17 00:00:00 2001 From: UbitUmarov Date: Thu, 14 Aug 2014 21:05:17 +0100 Subject: in show connections show also if it is a childagent connection --- OpenSim/Region/Application/OpenSim.cs | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) (limited to 'OpenSim') diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs index 13d8170..e1e3d87 100644 --- a/OpenSim/Region/Application/OpenSim.cs +++ b/OpenSim/Region/Application/OpenSim.cs @@ -978,17 +978,25 @@ namespace OpenSim cdt.AddColumn("Circuit code", 12); cdt.AddColumn("Endpoint", 23); cdt.AddColumn("Active?", 7); + cdt.AddColumn("ChildAgent?", 7); cdt.AddColumn("ping(ms)", 8); SceneManager.ForEachScene( s => s.ForEachClient( - c => cdt.AddRow( - s.Name, - c.Name, - c.CircuitCode.ToString(), - c.RemoteEndPoint.ToString(), - c.IsActive.ToString(), - c.PingTimeMS))); + c => + { + bool child = false; + if(c.SceneAgent != null && c.SceneAgent.IsChildAgent) + child = true; + cdt.AddRow( + s.Name, + c.Name, + c.CircuitCode.ToString(), + c.RemoteEndPoint.ToString(), + c.IsActive.ToString(), + child.ToString(), + c.PingTimeMS); + })); MainConsole.Instance.Output(cdt.ToString()); } -- cgit v1.1