summaryrefslogtreecommitdiff
path: root/bin/db-iris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-01-18 23:58:54 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-01-18 23:59:02 +0100
commitf8b052ab7c8dffc9aa873a6c35744c33ded4996a (patch)
tree30fce65e792ed5360837d00968fe3ea6c4733e0e /bin/db-iris
parent5fe03ddd5e1c225fbe8906ec19076e1ef80aeee3 (diff)
db-iris: also show reasons for cancelled trains
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 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 ) {