* Minor: Show summary count of connected agents in 'show users' region console output
parent
8eab365e21
commit
f5b254e0bf
|
@ -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;
|
||||||
|
@ -1173,6 +1177,8 @@ namespace OpenSim
|
||||||
?"Active client":"Standby client")));
|
?"Active client":"Standby client")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
m_console.Notice("");
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "modules":
|
case "modules":
|
||||||
m_console.Notice("The currently loaded shared modules are:");
|
m_console.Notice("The currently loaded shared modules are:");
|
||||||
|
|
Loading…
Reference in New Issue