summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-06-22 15:32:09 +0200
committerDaniel Friesel <derf@finalrewind.org>2014-06-22 15:32:09 +0200
commit6f41fc71e6fe5bc809ee5be3ebb43487a67992f2 (patch)
tree36ad1985d3669d0558517c7be19e1780757fb7ed
parentfe9dc6c86ae97554898fa9c8172cb6c043d2fcd1 (diff)
Fix IRIS delay in clean frontend
-rw-r--r--cgi/index.pl8
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 .= ' +++ ';