summaryrefslogtreecommitdiff
path: root/bin/efa-m
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-10-16 18:32:50 +0200
committerDaniel Friesel <derf@finalrewind.org>2013-10-16 18:32:50 +0200
commit565b081d49fee46f8ffd830057b1939286f3551b (patch)
tree879c22b20acb19f3e0bc772fc835758a4d4f854e /bin/efa-m
parent585a0f6f476ec04f19e2924dbbcbd898343cc867 (diff)
add $result->is_cancelled accessor, do not allow delay == -9999
Diffstat (limited to 'bin/efa-m')
-rwxr-xr-xbin/efa-m10
1 files changed, 4 insertions, 6 deletions
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,