Révision efac3a13
Ajouté par Phil Davis il y a presque 10 ans
etc/inc/filter.inc | ||
---|---|---|
3262 | 3262 |
$now = strtotime("now"); |
3263 | 3263 |
if($g['debug']) |
3264 | 3264 |
log_error("[TDR DEBUG] S: $starting_time E: $ending_time N: $now"); |
3265 |
if($now >= $starting_time and $now <= $ending_time)
|
|
3265 |
if($now >= $starting_time and $now < $ending_time) |
|
3266 | 3266 |
return true; |
3267 | 3267 |
return false; |
3268 | 3268 |
} |
Formats disponibles : Unified diff
Only include a scheduled rule if it is strictly before the end time
The exact moment of the end time is the end of the schedule. We do not want to include a rule when filter_configure_sync wakes up at 00:15:00 etc and is on a not-slow system that processes this code during the interval 00:15:00 to 00:15:01. This should help intermittent issues with schedules not finishing at the appropriate 15-minute boundary. Might help or fix #3558