summaryrefslogtreecommitdiff
path: root/bin/db-iris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-31 15:57:14 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-31 15:57:14 +0100
commit5362de4786544f8a99a1ca17b715bb0a6010a2e8 (patch)
treec0a3aed265ae2af7712aae198f94bedd4c695dc9 /bin/db-iris
parentf8270bc1109cc50c88b23cfc4ffcf67be864a1e3 (diff)
db-iris: Show platform_from -> platform_to with --track-via
Diffstat (limited to 'bin/db-iris')
-rwxr-xr-xbin/db-iris5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/db-iris b/bin/db-iris
index fc72adc..4185d1c 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -258,6 +258,7 @@ for my $d ( $status->results() ) {
$delay = ' CANCELED';
}
+ my $platformstr = $d->platform // q{};
my $timestr;
if ($track_via) {
$timestr = $d->time;
@@ -273,6 +274,8 @@ for my $d ( $status->results() ) {
}
my $timestr_via = $d_via->arrival->strftime('%H:%M') . $delay;
$timestr = $d->time . ' → ' . $timestr_via;
+ $platformstr = sprintf( '%2s → %2s', $d->platform // q{},
+ $d_via->platform // q{} );
}
elsif ( $edata{times} ) {
$timestr = sprintf( '%5s → %5s',
@@ -289,7 +292,7 @@ for my $d ( $status->results() ) {
[
$timestr, $d->train,
$edata{route} ? join( q{ }, $d->route_interesting ) : q{},
- $d->route_end, $d->platform // q{}, $d
+ $d->route_end, $platformstr // q{}, $d
]
);
}