summaryrefslogtreecommitdiffstats
path: root/whine.pl
diff options
context:
space:
mode:
authorerik%dasbistro.com <>2005-01-11 04:31:50 +0100
committererik%dasbistro.com <>2005-01-11 04:31:50 +0100
commit4f5cad994b3786713c79b831e3af48ea7fe3a9b0 (patch)
treee60672c4d2964c1e218cdbbce07c577f9173afff /whine.pl
parentd43362f97c5d87491e1ea520eb6c5c0e7043b6df (diff)
downloadbugzilla-4f5cad994b3786713c79b831e3af48ea7fe3a9b0.tar.gz
bugzilla-4f5cad994b3786713c79b831e3af48ea7fe3a9b0.tar.xz
Bug 276660
"1st of the Month" whine generates many many copies of whine mail Patch: erik@dasbistro.com r=justdave, a=justdave
Diffstat (limited to 'whine.pl')
-rwxr-xr-xwhine.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/whine.pl b/whine.pl
index 25a422a71..920b27d05 100755
--- a/whine.pl
+++ b/whine.pl
@@ -523,8 +523,9 @@ sub reset_timer {
# whine.pl -- there are legitimate circumstances that can cause this, like
# a set of whines that take a very long time to execute, so it's done
# quietly.
- if (grep(/^$schedule_id$/, @seen_schedules)) {
+ if (grep($_ == $schedule_id, @seen_schedules)) {
null_schedule($schedule_id);
+ return;
}
push @seen_schedules, $schedule_id;
@@ -652,7 +653,7 @@ sub get_next_date {
else { # it's a number, so we set it for that calendar day
$add_days = $day - $now_day;
# If it's already beyond that day this month, set it to the next one
- if ($add_days < 0) {
+ if ($add_days <= 0) {
$add_days += $daysinmonth[$now_month];
}
}