diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-01-18 23:58:54 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-01-18 23:59:02 +0100 |
commit | f8b052ab7c8dffc9aa873a6c35744c33ded4996a (patch) | |
tree | 30fce65e792ed5360837d00968fe3ea6c4733e0e /bin | |
parent | 5fe03ddd5e1c225fbe8906ec19076e1ef80aeee3 (diff) |
db-iris: also show reasons for cancelled trains
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/db-iris | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/db-iris b/bin/db-iris index d0e2662..f6de1e2 100755 --- a/bin/db-iris +++ b/bin/db-iris @@ -148,7 +148,10 @@ sub display_result { my $d = $line->[5]; - if ( $edata{delay} and $d->delay and $d->delay_messages ) { + if ( $edata{delay} + and ( $d->delay or $d->is_cancelled ) + and $d->delay_messages ) + { printf( ' %s', ( $d->delay_messages )[-1]->[1] ); } if ( $edata{qos} and $d->qos_messages ) { |