From 565b081d49fee46f8ffd830057b1939286f3551b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 16 Oct 2013 18:32:50 +0200 Subject: add $result->is_cancelled accessor, do not allow delay == -9999 --- bin/efa-m | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/efa-m b/bin/efa-m index a885be3..28136fb 100755 --- a/bin/efa-m +++ b/bin/efa-m @@ -136,13 +136,11 @@ sub show_results { next; } + if ( $d->is_cancelled ) { + $dtime .= ' CANCELED'; + } if ( $d->delay ) { - if ($d->delay eq '-9999') { - $dtime .= ' CANCELED'; - } - else { - $dtime .= ' (+' . $d->delay . ')'; - } + $dtime .= ' (+' . $d->delay . ')'; } push( @output, -- cgit v1.2.3