diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-10-16 18:32:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-10-16 18:32:50 +0200 |
commit | 565b081d49fee46f8ffd830057b1939286f3551b (patch) | |
tree | 879c22b20acb19f3e0bc772fc835758a4d4f854e /bin/efa-m | |
parent | 585a0f6f476ec04f19e2924dbbcbd898343cc867 (diff) |
add $result->is_cancelled accessor, do not allow delay == -9999
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-x | bin/efa-m | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -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, |