summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-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{} ),