summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2012-08-20 14:52:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2012-08-20 14:52:22 +0200
commit8dd3185c5deec39ff1e636b3da4691aad5dd3673 (patch)
tree80dfb1fa99d23d8ab8caa4820e50df55d89c2503 /bin/efa-m
parentf9cf3d1a607ca145203b3447c6444e860d67dec8 (diff)
efa-m: parse 'tram canceled' information (delay -9999)
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/efa-m b/bin/efa-m
index c08bf51..1ef16bf 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -135,7 +135,12 @@ sub show_results {
}
if ( $d->delay ) {
- $dtime .= ' (+' . $d->delay . ')';
+ if ($d->delay eq '-9999') {
+ $dtime .= ' CANCELED';
+ }
+ else {
+ $dtime .= ' (+' . $d->delay . ')';
+ }
}
push( @output,