Permalink
Browse files

--extended option for tirex-status: show renderer and map config only…

… if this is on
  • Loading branch information...
Jochen Topf
Jochen Topf committed May 11, 2010
1 parent a1e4293 commit fc7eac4419df55ba9bb3d661ad277334e384a0e5
Showing with 17 additions and 3 deletions.
  1. +11 −0 BUGS
  2. +6 −3 bin/tirex-status
11 BUGS
@@ -0,0 +1,11 @@
Tirex Bugs
==========
* There are config options metatile_rows and metatile_columns and defaults for
those settings in the Perl code as $Tirex::METATILE_ROWS and
$Tirex::METATILE_COLUMNS. Some Tirex code looks into the config, some uses the
variables above and some has hardcoded dependencies on metatile size. Nobody
has ever tested Tirex with sizes other than 8x8. Especially non-quadratic
metatiles will probably not work at all.
@@ -44,7 +44,7 @@ use Tirex::Status;
#-----------------------------------------------------------------------------
my %opts = ( raw => 0, once => 0 );
GetOptions( \%opts, 'help|h', 'once|o', 'raw|r' ) or exit(2);
GetOptions( \%opts, 'help|h', 'once|o', 'raw|r', 'extended|e' ) or exit(2);
if ($opts{'help'})
{
@@ -121,8 +121,7 @@ sub format_status
. format_queue($d->{'queue'})
. format_buckets($d->{'rm'}, $d->{'queue'})
. format_rendering($d->{'rm'})
. format_renderers($d->{'renderers'})
. format_maps($d->{'maps'});
. ($opts{'extended'} ? format_renderers($d->{'renderers'}) . format_maps($d->{'maps'}) : '');
}
sub format_master_server
@@ -306,6 +305,10 @@ Show status only once, default is to show it once per second.
Return status in raw JSON format instead of in ANSI coloured human readable
form. Implies --once.
=item B<-e>, B<--extended>
Show renderer and map config, too.
=back
=head1 DESCRIPTION

0 comments on commit fc7eac4

Please sign in to comment.