add agent position to output of "show users" console command

mysql-performance
dahlia 2009-11-30 01:09:03 -08:00
parent dac9c6fb23
commit e987e85c0c
1 changed files with 5 additions and 4 deletions

View File

@ -939,8 +939,8 @@ namespace OpenSim
m_log.Info(String.Format("\nAgents connected: {0}\n", agents.Count)); m_log.Info(String.Format("\nAgents connected: {0}\n", agents.Count));
m_log.Info( m_log.Info(
String.Format("{0,-16}{1,-16}{2,-37}{3,-11}{4,-16}", "Firstname", "Lastname", String.Format("{0,-16}{1,-16}{2,-37}{3,-11}{4,-16}{5,-30}", "Firstname", "Lastname",
"Agent ID", "Root/Child", "Region")); "Agent ID", "Root/Child", "Region", "Position"));
foreach (ScenePresence presence in agents) foreach (ScenePresence presence in agents)
{ {
@ -958,12 +958,13 @@ namespace OpenSim
m_log.Info( m_log.Info(
String.Format( String.Format(
"{0,-16}{1,-16}{2,-37}{3,-11}{4,-16}", "{0,-16}{1,-16}{2,-37}{3,-11}{4,-16}{5,-30}",
presence.Firstname, presence.Firstname,
presence.Lastname, presence.Lastname,
presence.UUID, presence.UUID,
presence.IsChildAgent ? "Child" : "Root", presence.IsChildAgent ? "Child" : "Root",
regionName)); regionName,
presence.AbsolutePosition.ToString()));
} }
m_log.Info(String.Empty); m_log.Info(String.Empty);