summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-10-26 10:50:59 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-10-26 10:50:59 +0100
commitdb2e06e1decb3b25df765b75326a8e35248d1def (patch)
tree79ef77c97753d199604adb00cf014f15dc8da56e /bin
parent34793a5b499f42991fdd5acd7f81074d3e03fb68 (diff)
add support for canceled / additional stops. untested at the moment
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-iris27
1 files changed, 19 insertions, 8 deletions
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";
}