diff options
author | Justin Clark-Casey (justincc) | 2012-05-23 02:30:16 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-05-23 02:30:16 +0100 |
commit | 050007b44da97bf155fca95cadc32cb27924e263 (patch) | |
tree | 764420793433e2e3c0788019859f6834c8ec0bae | |
parent | Fetch the dialog module reference in AttachmentsModule in RegionLoaded() not ... (diff) | |
download | opensim-SC-050007b44da97bf155fca95cadc32cb27924e263.zip opensim-SC-050007b44da97bf155fca95cadc32cb27924e263.tar.gz opensim-SC-050007b44da97bf155fca95cadc32cb27924e263.tar.bz2 opensim-SC-050007b44da97bf155fca95cadc32cb27924e263.tar.xz |
Lay out "show region" information in an easier to read line by line format
-rw-r--r-- | OpenSim/Services/GridService/GridService.cs | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/OpenSim/Services/GridService/GridService.cs b/OpenSim/Services/GridService/GridService.cs index 3dc87bc..b17fca7 100644 --- a/OpenSim/Services/GridService/GridService.cs +++ b/OpenSim/Services/GridService/GridService.cs | |||
@@ -509,19 +509,21 @@ namespace OpenSim.Services.GridService | |||
509 | return; | 509 | return; |
510 | } | 510 | } |
511 | 511 | ||
512 | MainConsole.Instance.Output("Region Name Region UUID"); | 512 | ICommandConsole con = MainConsole.Instance; |
513 | MainConsole.Instance.Output("Location URI"); | 513 | |
514 | MainConsole.Instance.Output("Owner ID Flags"); | ||
515 | MainConsole.Instance.Output("-------------------------------------------------------------------------------"); | ||
516 | foreach (RegionData r in regions) | 514 | foreach (RegionData r in regions) |
517 | { | 515 | { |
518 | OpenSim.Data.RegionFlags flags = (OpenSim.Data.RegionFlags)Convert.ToInt32(r.Data["flags"]); | 516 | OpenSim.Data.RegionFlags flags = (OpenSim.Data.RegionFlags)Convert.ToInt32(r.Data["flags"]); |
519 | MainConsole.Instance.Output(String.Format("{0,-20} {1}\n{2,-20} {3}\n{4,-39} {5}\n\n", | 517 | |
520 | r.RegionName, r.RegionID, | 518 | con.OutputFormat("{0,-11}: {1}", "Region Name", r.RegionName); |
521 | String.Format("{0},{1}", r.posX / Constants.RegionSize, r.posY / Constants.RegionSize), | 519 | con.OutputFormat("{0,-11}: {1}", "Region ID", r.RegionID); |
522 | r.Data["serverURI"], | 520 | con.OutputFormat("{0,-11}: {1}", "Location", r.coordX, r.coordY); |
523 | r.Data["owner_uuid"], flags)); | 521 | con.OutputFormat("{0,-11}: {1}", "URI", r.Data["serverURI"]); |
522 | con.OutputFormat("{0,-11}: {1}", "Owner ID", r.Data["owner_uuid"]); | ||
523 | con.OutputFormat("{0,-11}: {1}", "Flags", flags); | ||
524 | con.Output("\n"); | ||
524 | } | 525 | } |
526 | |||
525 | return; | 527 | return; |
526 | } | 528 | } |
527 | 529 | ||