diff options
author | Justin Clark-Casey (justincc) | 2014-07-04 23:57:24 +0100 |
---|---|---|
committer | Justin Clark-Casey | 2014-08-02 00:52:22 +0100 |
commit | fabe054608a359816a7917de7485dc0e568ad5de (patch) | |
tree | 654226ed2f1ac4778fc6cb0228a60ecf43f1d320 /OpenSim/Services | |
parent | Instrument the UDP path of creating assets so that it triggers an asset post ... (diff) | |
download | opensim-SC_OLD-fabe054608a359816a7917de7485dc0e568ad5de.zip opensim-SC_OLD-fabe054608a359816a7917de7485dc0e568ad5de.tar.gz opensim-SC_OLD-fabe054608a359816a7917de7485dc0e568ad5de.tar.bz2 opensim-SC_OLD-fabe054608a359816a7917de7485dc0e568ad5de.tar.xz |
Adjust "show regions" and "show region" robust service console output to show size
"show regions" drops the owner id column but is till present in "show region"
"show regions" name column expanded to allow for longer hg regions (probably still too short, may eventually have to truncate rather than taking up huge screen space)
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 8198592..394ba24 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -615,7 +615,6 @@ namespace OpenSim.Services.GridService | |||
615 | OutputRegionsToConsoleSummary(regions); | 615 | OutputRegionsToConsoleSummary(regions); |
616 | } | 616 | } |
617 | 617 | ||
618 | |||
619 | private void HandleShowRegion(string module, string[] cmd) | 618 | private void HandleShowRegion(string module, string[] cmd) |
620 | { | 619 | { |
621 | if (cmd.Length != 4) | 620 | if (cmd.Length != 4) |
@@ -674,7 +673,8 @@ namespace OpenSim.Services.GridService | |||
674 | ConsoleDisplayList dispList = new ConsoleDisplayList(); | 673 | ConsoleDisplayList dispList = new ConsoleDisplayList(); |
675 | dispList.AddRow("Region Name", r.RegionName); | 674 | dispList.AddRow("Region Name", r.RegionName); |
676 | dispList.AddRow("Region ID", r.RegionID); | 675 | dispList.AddRow("Region ID", r.RegionID); |
677 | dispList.AddRow("Location", string.Format("{0},{1}", r.coordX, r.coordY)); | 676 | dispList.AddRow("Position", string.Format("{0},{1}", r.coordX, r.coordY)); |
677 | dispList.AddRow("Size", string.Format("{0}x{1}", r.sizeX, r.sizeY)); | ||
678 | dispList.AddRow("URI", r.Data["serverURI"]); | 678 | dispList.AddRow("URI", r.Data["serverURI"]); |
679 | dispList.AddRow("Owner ID", r.Data["owner_uuid"]); | 679 | dispList.AddRow("Owner ID", r.Data["owner_uuid"]); |
680 | dispList.AddRow("Flags", flags); | 680 | dispList.AddRow("Flags", flags); |
@@ -691,10 +691,10 @@ namespace OpenSim.Services.GridService | |||
691 | private void OutputRegionsToConsoleSummary(List<RegionData> regions) | 691 | private void OutputRegionsToConsoleSummary(List<RegionData> regions) |
692 | { | 692 | { |
693 | ConsoleDisplayTable dispTable = new ConsoleDisplayTable(); | 693 | ConsoleDisplayTable dispTable = new ConsoleDisplayTable(); |
694 | dispTable.AddColumn("Name", 16); | 694 | dispTable.AddColumn("Name", 44); |
695 | dispTable.AddColumn("ID", 36); | 695 | dispTable.AddColumn("ID", 36); |
696 | dispTable.AddColumn("Position", 11); | 696 | dispTable.AddColumn("Position", 11); |
697 | dispTable.AddColumn("Owner ID", 36); | 697 | dispTable.AddColumn("Size", 11); |
698 | dispTable.AddColumn("Flags", 60); | 698 | dispTable.AddColumn("Flags", 60); |
699 | 699 | ||
700 | foreach (RegionData r in regions) | 700 | foreach (RegionData r in regions) |
@@ -704,7 +704,7 @@ namespace OpenSim.Services.GridService | |||
704 | r.RegionName, | 704 | r.RegionName, |
705 | r.RegionID.ToString(), | 705 | r.RegionID.ToString(), |
706 | string.Format("{0},{1}", r.coordX, r.coordY), | 706 | string.Format("{0},{1}", r.coordX, r.coordY), |
707 | r.Data["owner_uuid"].ToString(), | 707 | string.Format("{0}x{1}", r.sizeX, r.sizeY), |
708 | flags.ToString()); | 708 | flags.ToString()); |
709 | } | 709 | } |
710 | 710 | ||