aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSimMain.cs
diff options
context:
space:
mode:
authorJustin Clarke Casey2008-04-08 20:54:18 +0000
committerJustin Clarke Casey2008-04-08 20:54:18 +0000
commitf5b254e0bf282f28fb9f1e2f671eb19419bf4be3 (patch)
tree1ed570cbae79237494625a50b4a808763e67f971 /OpenSim/Region/Application/OpenSimMain.cs
parent* Adjust some inventory lookup failure messages to reduce confusion as to wha... (diff)
downloadopensim-SC_OLD-f5b254e0bf282f28fb9f1e2f671eb19419bf4be3.zip
opensim-SC_OLD-f5b254e0bf282f28fb9f1e2f671eb19419bf4be3.tar.gz
opensim-SC_OLD-f5b254e0bf282f28fb9f1e2f671eb19419bf4be3.tar.bz2
opensim-SC_OLD-f5b254e0bf282f28fb9f1e2f671eb19419bf4be3.tar.xz
* Minor: Show summary count of connected agents in 'show users' region console output
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSimMain.cs8
1 files changed, 7 insertions, 1 deletions
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
1132 break; 1132 break;
1133 1133
1134 case "users": 1134 case "users":
1135 IList agents = m_sceneManager.GetCurrentSceneAvatars();
1136
1137 m_console.Notice(String.Format("\nAgents connected: {0}\n", agents.Count));
1138
1135 m_console.Notice( 1139 m_console.Notice(
1136 String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}{6,-15}", "Firstname", "Lastname", 1140 String.Format("{0,-16}{1,-16}{2,-37}{3,-16}{4,-22}{5,-16}{6,-15}", "Firstname", "Lastname",
1137 "Agent ID", "Circuit", "IP", "Region", "Status")); 1141 "Agent ID", "Circuit", "IP", "Region", "Status"));
1138 1142
1139 foreach (ScenePresence presence in m_sceneManager.GetCurrentSceneAvatars()) 1143 foreach (ScenePresence presence in agents)
1140 { 1144 {
1141 RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle); 1145 RegionInfo regionInfo = m_sceneManager.GetRegionInfo(presence.RegionHandle);
1142 string regionName; 1146 string regionName;
@@ -1172,6 +1176,8 @@ namespace OpenSim
1172 ((((ClientView)presence.ControllingClient).PacketProcessingEnabled) 1176 ((((ClientView)presence.ControllingClient).PacketProcessingEnabled)
1173 ?"Active client":"Standby client"))); 1177 ?"Active client":"Standby client")));
1174 } 1178 }
1179
1180 m_console.Notice("");
1175 1181
1176 break; 1182 break;
1177 case "modules": 1183 case "modules":