From 32435aafaa39dad97a95c619d1649b3be22ffb1e Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 11 Apr 2011 17:44:07 +0000 Subject: fix "times" condition to not run one extra, RT#11834 --- FS/FS/part_event/Condition/times.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'FS') 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"; } -- cgit v1.2.1