From 8dd3185c5deec39ff1e636b3da4691aad5dd3673 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 20 Aug 2012 14:52:22 +0200 Subject: efa-m: parse 'tram canceled' information (delay -9999) --- bin/efa-m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin/efa-m') 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, -- cgit v1.2.3