# 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;
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];
}
}