summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-04-11 17:44:06 +0000
committerivan <ivan>2011-04-11 17:44:06 +0000
commite2cdebec95ba8f2a41c1841b4501f230b01bde99 (patch)
tree600f05ddd1afd582e66e9ce148e5558a248107da
parenta0fec35d6bac0cece6bafa557a7a53058fdf5c6a (diff)
fix "times" condition to not run one extra, RT#11834
-rw-r--r--FS/FS/part_event/Condition/times.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/part_event/Condition/times.pm b/FS/FS/part_event/Condition/times.pm
index 46c2967bc..14ff23b9d 100644
--- a/FS/FS/part_event/Condition/times.pm
+++ b/FS/FS/part_event/Condition/times.pm
@@ -34,7 +34,7 @@ sub condition {
),
} );
- scalar(@existing) <= $self->option('run_times');
+ scalar(@existing) < $self->option('run_times');
}
@@ -52,7 +52,7 @@ sub condition_sql {
AND status != 'failed'
)";
- "$existing <= $run_times";
+ "$existing < $run_times";
}