diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-06-22 15:32:09 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-06-22 15:32:09 +0200 |
commit | 6f41fc71e6fe5bc809ee5be3ebb43487a67992f2 (patch) | |
tree | 36ad1985d3669d0558517c7be19e1780757fb7ed | |
parent | fe9dc6c86ae97554898fa9c8172cb6c043d2fcd1 (diff) |
Fix IRIS delay in clean frontend
-rw-r--r-- | cgi/index.pl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cgi/index.pl b/cgi/index.pl index 531ee5e..c5180e5 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -138,8 +138,14 @@ sub handle_request { $info = "Fahrt fällt aus: ${delaymsg}"; } elsif ( $result->delay and $result->delay > 0 ) { - $info = sprintf( 'Verspätung ca %d Min.%s%s', + if ($template eq 'clean') { + $info = $delaymsg; + $delay = $result->delay; + } + else { + $info = sprintf( 'Verspätung ca. %d Min.%s%s', $result->delay, $delaymsg ? q{: } : q{}, $delaymsg ); + } } if ( $info and $qosmsg ) { $info .= ' +++ '; |