Projet

Général

Profil

« Précédent | Suivant » 

Révision a43c5bde

Ajouté par Phil Davis il y a presque 10 ans

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

Voir les différences:

etc/inc/filter.inc
3418 3418
	$now = strtotime("now");
3419 3419
	if($g['debug'])
3420 3420
		log_error("[TDR DEBUG] S: $starting_time E: $ending_time N: $now");
3421
	if($now >= $starting_time and $now <= $ending_time)
3421
	if($now >= $starting_time and $now < $ending_time)
3422 3422
		return true;
3423 3423
	return false;
3424 3424
}

Formats disponibles : Unified diff