diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-08-11 16:38:14 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-08-11 16:38:14 +0200 |
commit | 9bee75d432365d44af46f5d500f7d210b867cc18 (patch) | |
tree | a117d9eaaf97e6f04fa2ecf57c130adeb6a6f071 /index.pl | |
parent | eb3be788427872f60631078215a82352c490dceb (diff) |
rename title/description to infoscreen (we're not just a fakedisplay anymore)
Diffstat (limited to 'index.pl')
-rw-r--r-- | index.pl | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -33,7 +33,7 @@ sub get_results { $expiry ||= 150; my $cache = Cache::File->new( - cache_root => '/tmp/vrr-fake', + cache_root => '/tmp/vrr-fakedisplay', default_expires => "${expiry} sec", lock_level => Cache::File::LOCK_LOCAL(), ); @@ -106,7 +106,7 @@ sub handle_request { $no_lines = $default{no_lines}; } - $self->stash( title => 'vrr-fakedisplay' ); + $self->stash( title => 'vrr-infoscreen' ); $self->stash( version => $VERSION ); $self->stash( params => $self->req->params->to_string ); @@ -122,7 +122,7 @@ sub handle_request { errstr => $errstr, title => $stop ? "departures for ${city} ${stop}" - : "vrr-fakedisplay ${VERSION}", + : "vrr-infoscreen ${VERSION}", ); return; @@ -342,7 +342,7 @@ sub render_html { $self->render( $template, - title => "vrr-fakedisplay v${VERSION}", + title => "vrr-infoscreen v${VERSION}", color => [ split( qr{,}, $color ) ], departures => \@departures, id_name => decode( 'UTF-8', $data->{id_name} ), @@ -522,7 +522,7 @@ get '/:stop' => \&handle_request; app->config( hypnotoad => { listen => ['http://*:8091'], - pid_file => '/tmp/vrr-fake.pid', + pid_file => '/tmp/vrr-fakedisplay.pid', workers => $ENV{DBFAKEDISPLAY_WORKERS} // 2, }, ); |