summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-10 14:01:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-10 14:01:30 +0200
commit91505f61f68fa35977d5d913b5b9cc2800f9b68c (patch)
tree82d5ceaa4fa180a3cd80f77e603588cbb7232c1f
parent2f8567d38b418dba31111e6886b2558548790496 (diff)
hafas-m: Correctly display negative delays (yes, they do happen)
-rwxr-xr-xbin/hafas-m2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/hafas-m b/bin/hafas-m
index 5f49a19..5dea42e 100755
--- a/bin/hafas-m
+++ b/bin/hafas-m
@@ -137,7 +137,7 @@ for my $d ( $status->results() ) {
$d->time,
$d->is_cancelled
? 'CANCELED'
- : ( $d->delay ? '+' . $d->delay : q{} ),
+ : ( $d->delay ? sprintf( '%+d', $d->delay ) : q{} ),
$d->train,
$d->route_end,
( $d->platform // q{} ) . ( $d->is_changed_platform ? ' !' : q{} ),