aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Application/OpenSim.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2014-03-05 01:23:16 +0000
committerJustin Clark-Casey (justincc)2014-03-05 01:23:48 +0000
commit4e6f7435d0ab2b1d8ce5c723a0be33b88d05e571 (patch)
tree8714a267f709a1f34c6157f017617d30dad94e50 /OpenSim/Region/Application/OpenSim.cs
parentDon't request a terse update after local teleport - this will be done by the ... (diff)
downloadopensim-SC-4e6f7435d0ab2b1d8ce5c723a0be33b88d05e571.zip
opensim-SC-4e6f7435d0ab2b1d8ce5c723a0be33b88d05e571.tar.gz
opensim-SC-4e6f7435d0ab2b1d8ce5c723a0be33b88d05e571.tar.bz2
opensim-SC-4e6f7435d0ab2b1d8ce5c723a0be33b88d05e571.tar.xz
Add UUID and ready status (whether region has finished starting up) to "show regions" console output.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Application/OpenSim.cs27
1 files changed, 17 insertions, 10 deletions
diff --git a/OpenSim/Region/Application/OpenSim.cs b/OpenSim/Region/Application/OpenSim.cs
index 3d80c6e..6d3331b 100644
--- a/OpenSim/Region/Application/OpenSim.cs
+++ b/OpenSim/Region/Application/OpenSim.cs
@@ -916,17 +916,24 @@ namespace OpenSim
916 break; 916 break;
917 917
918 case "regions": 918 case "regions":
919 ConsoleDisplayTable cdt = new ConsoleDisplayTable();
920 cdt.AddColumn("Name", ConsoleDisplayUtil.RegionNameSize);
921 cdt.AddColumn("ID", ConsoleDisplayUtil.UuidSize);
922 cdt.AddColumn("Position", ConsoleDisplayUtil.CoordTupleSize);
923 cdt.AddColumn("Port", ConsoleDisplayUtil.PortSize);
924 cdt.AddColumn("Ready?", 6);
925 cdt.AddColumn("Estate", ConsoleDisplayUtil.EstateNameSize);
919 SceneManager.ForEachScene( 926 SceneManager.ForEachScene(
920 delegate(Scene scene) 927 scene =>
921 { 928 {
922 MainConsole.Instance.Output(String.Format( 929 RegionInfo ri = scene.RegionInfo;
923 "Region Name: {0}, Region XLoc: {1}, Region YLoc: {2}, Region Port: {3}, Estate Name: {4}", 930 cdt.AddRow(
924 scene.RegionInfo.RegionName, 931 ri.RegionName, ri.RegionID, string.Format("{0},{1}", ri.RegionLocX, ri.RegionLocY),
925 scene.RegionInfo.RegionLocX, 932 ri.InternalEndPoint.Port, scene.Ready ? "Yes" : "No", ri.EstateSettings.EstateName);
926 scene.RegionInfo.RegionLocY, 933 }
927 scene.RegionInfo.InternalEndPoint.Port, 934 );
928 scene.RegionInfo.EstateSettings.EstateName)); 935
929 }); 936 MainConsole.Instance.Output(cdt.ToString());
930 break; 937 break;
931 938
932 case "ratings": 939 case "ratings":