diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-02 17:25:27 +0200 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-04-02 17:25:27 +0200 |
| commit | 31b5c565d3f8034f838c6f73d01a1316917825c5 (patch) | |
| tree | 6e0f6d6c28875b0acfe7fca53eed049507bf4ff3 /bin | |
| parent | 7253e4dfc6dac92ccc8937f024f93f84aae1aa1c (diff) | |
dbris-m: fall back to via_last if destination is unavailable
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/dbris-m | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/dbris-m b/bin/dbris-m index 13c7020..c6cbe70 100755 --- a/bin/dbris-m +++ b/bin/dbris-m @@ -318,7 +318,8 @@ if ($json_output) { if ( $opt{station} ) { my $max_line = max map { length( $_->line ) } $status->results; my $max_dest - = max map { length( $_->destination // q{} ) } $status->results; + = max map { length( $_->destination // $_->via_last // q{} ) } + $status->results; my $max_delay = max map { length( $_->delay // q{} ) } $status->results; my $max_platform = max map { length( $_->rt_platform // $_->platform // q{} ) } |
