From f5b254e0bf282f28fb9f1e2f671eb19419bf4be3 Mon Sep 17 00:00:00 2001 From: Justin Clarke Casey Date: Tue, 8 Apr 2008 20:54:18 +0000 Subject: * Minor: Show summary count of connected agents in 'show users' region console output --- OpenSim/Region/Application/OpenSimMain.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'OpenSim/Region/Application/OpenSimMain.cs') diff --git a/OpenSim/Region/Application/OpenSimMain.cs b/OpenSim/Region/Application/OpenSimMain.cs index c4b3075..91a0f19 100644 --- a/OpenSim/Region/Application/OpenSimMain.cs +++ b/OpenSim/Region/Application/OpenSimMain.cs @@ -1132,11 +1132,15 @@ namespace OpenSim break; case "users": + IList agents = m_sceneManager.GetCurrentSceneAvatars(); + + m_console.Notice(String.Format("\nAgents connected: {0}\n", agents.Count)); + m_console.Notice( String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}{6,-15}", "Firstname", "Lastname", "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); string regionName; @@ -1172,6 +1176,8 @@ namespace OpenSim ((((ClientView)presence.ControllingClient).PacketProcessingEnabled) ?"Active client":"Standby client"))); } + + m_console.Notice(""); break; case "modules": -- cgit v1.1