summaryrefslogtreecommitdiff
path: root/cgi/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/index.pl')
-rw-r--r--cgi/index.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/cgi/index.pl b/cgi/index.pl
index 1b49e98..6fdfcb8 100644
--- a/cgi/index.pl
+++ b/cgi/index.pl
@@ -81,9 +81,12 @@ sub handle_request {
}
my $info = $result->info;
- if ($info eq '+0') {
+ if ( $info eq '+0' ) {
$info = undef;
}
+ if ( $info and $info =~ m{ ^ \+ (\d+) $ }ox ) {
+ $info = "Verspaetung ca. $1 Minuten";
+ }
push(
@departures,
{
@@ -114,7 +117,7 @@ get '/_redirect' => sub {
$params->remove('station');
$params->remove('via');
- if ($params->param('mode') and $params->param('mode') eq 'multi') {
+ if ( $params->param('mode') and $params->param('mode') eq 'multi' ) {
$params->remove('mode');
}