Skip to content

Commit

Permalink
--extended option for tirex-status: show renderer and map config only…
Browse files Browse the repository at this point in the history
… if this is on
  • Loading branch information
Jochen Topf committed May 11, 2010
1 parent a1e4293 commit fc7eac4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
11 changes: 11 additions & 0 deletions 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.

9 changes: 6 additions & 3 deletions bin/tirex-status
Expand Up @@ -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'})
{
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc7eac4

Please sign in to comment.