in show connections show also if it is a childagent connection

avinationmerge
UbitUmarov 2014-08-14 21:05:17 +01:00
parent a46d6004df
commit 538a95ff1e
1 changed files with 15 additions and 7 deletions

View File

@ -978,17 +978,25 @@ namespace OpenSim
cdt.AddColumn("Circuit code", 12); cdt.AddColumn("Circuit code", 12);
cdt.AddColumn("Endpoint", 23); cdt.AddColumn("Endpoint", 23);
cdt.AddColumn("Active?", 7); cdt.AddColumn("Active?", 7);
cdt.AddColumn("ChildAgent?", 7);
cdt.AddColumn("ping(ms)", 8); cdt.AddColumn("ping(ms)", 8);
SceneManager.ForEachScene( SceneManager.ForEachScene(
s => s.ForEachClient( s => s.ForEachClient(
c => cdt.AddRow( c =>
s.Name, {
c.Name, bool child = false;
c.CircuitCode.ToString(), if(c.SceneAgent != null && c.SceneAgent.IsChildAgent)
c.RemoteEndPoint.ToString(), child = true;
c.IsActive.ToString(), cdt.AddRow(
c.PingTimeMS))); s.Name,
c.Name,
c.CircuitCode.ToString(),
c.RemoteEndPoint.ToString(),
c.IsActive.ToString(),
child.ToString(),
c.PingTimeMS);
}));
MainConsole.Instance.Output(cdt.ToString()); MainConsole.Instance.Output(cdt.ToString());
} }