* Minor: Show summary count of connected agents in 'show users' region console output

0.6.0-stable
Justin Clarke Casey 2008-04-08 20:54:18 +00:00
parent 8eab365e21
commit f5b254e0bf
1 changed files with 7 additions and 1 deletions

View File

@ -1132,11 +1132,15 @@ namespace OpenSim
break; break;
case "users": case "users":
IList agents = m_sceneManager.GetCurrentSceneAvatars();
m_console.Notice(String.Format("\nAgents connected: {0}\n", agents.Count));
m_console.Notice( m_console.Notice(
String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}{6,-15}", "Firstname", "Lastname", String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}{6,-15}", "Firstname", "Lastname",
"Agent ID", "Circuit", "IP", "Region", "Status")); "Agent ID", "Circuit", "IP", "Region", "Status"));
foreach (ScenePresence presence in m_sceneManager.GetCurrentSceneAvatars()) foreach (ScenePresence presence in agents)
{ {
RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
string regionName; string regionName;
@ -1172,6 +1176,8 @@ namespace OpenSim
((((ClientView)presence.ControllingClient).PacketProcessingEnabled) ((((ClientView)presence.ControllingClient).PacketProcessingEnabled)
?"Active client":"Standby client"))); ?"Active client":"Standby client")));
} }
m_console.Notice("");
break; break;
case "modules": case "modules":