From db2e06e1decb3b25df765b75326a8e35248d1def Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 26 Oct 2014 10:50:59 +0100 Subject: add support for canceled / additional stops. untested at the moment --- bin/db-iris | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) (limited to 'bin/db-iris') diff --git a/bin/db-iris b/bin/db-iris index 6e4accb..a362ccc 100755 --- a/bin/db-iris +++ b/bin/db-iris @@ -82,14 +82,16 @@ if ($time) { for my $efield (@edata_pre) { given ($efield) { - when ('d') { $edata{delay} = 1 } - when ('D') { $edata{delays} = 1 } - when ('f') { $edata{fullroute} = 1 } - when ('m') { $edata{messages} = 1 } - when ('q') { $edata{qos} = 1 } - when ('r') { $edata{route} = 1 } - when ('t') { $edata{times} = 1 } - default { $edata{$efield} = 1 } + when ('a') { $edata{additional} = 1 } + when ('c') { $edata{canceled} = 1 } + when ('d') { $edata{delay} = 1 } + when ('D') { $edata{delays} = 1 } + when ('f') { $edata{fullroute} = 1 } + when ('m') { $edata{messages} = 1 } + when ('q') { $edata{qos} = 1 } + when ('r') { $edata{route} = 1 } + when ('t') { $edata{times} = 1 } + default { $edata{$efield} = 1 } } } @@ -247,6 +249,15 @@ sub display_result { print "\n"; } + if ( $edata{additional} and $d->additional_stops ) { + printf( "Zusätzlicher Halt in: %s\n", + join( q{, }, $d->additional_stops ) ); + } + + if ( $edata{canceled} and $d->canceled_stops ) { + printf( "Ohne Halt in: %s\n", join( q{, }, $d->canceled_stops ) ); + } + if ( $edata{fullroute} ) { print "\n" . join( "\n", $d->route ) . "\n\n"; } -- cgit v1.2.3