diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-09-10 14:01:30 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-09-10 14:01:30 +0200 |
commit | 91505f61f68fa35977d5d913b5b9cc2800f9b68c (patch) | |
tree | 82d5ceaa4fa180a3cd80f77e603588cbb7232c1f | |
parent | 2f8567d38b418dba31111e6886b2558548790496 (diff) |
hafas-m: Correctly display negative delays (yes, they do happen)
-rwxr-xr-x | bin/hafas-m | 2 |
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{} ), |