From 1448796fa7c681dfc1157c5d4ae909cbbbe3d2d3 Mon Sep 17 00:00:00 2001 From: "Michael Kaufmann (d00p)" Date: Tue, 14 Jan 2014 09:38:26 +0100 Subject: [PATCH] traffic runs daily Signed-off-by: Michael Kaufmann (d00p) --- .../function.checkCrondConfigurationFile.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/functions/froxlor/function.checkCrondConfigurationFile.php b/lib/functions/froxlor/function.checkCrondConfigurationFile.php index 6848a43a..0c624a73 100644 --- a/lib/functions/froxlor/function.checkCrondConfigurationFile.php +++ b/lib/functions/froxlor/function.checkCrondConfigurationFile.php @@ -56,18 +56,18 @@ function checkCrondConfigurationFile() { $hour_delay += 3; break; case "DAY": - $cronfile .= $day_delay." 0 */" . $matches[1] . " * * "; - $day_delay += 5; - break; - case "MONTH": if ($row_cronentry['cronfile'] == 'traffic') { // traffic at exactly 0:00 o'clock - $cronfile .= "0 0 0 */" . $matches[1] . " * "; + $cronfile .= "0 0 */" . $matches[1] . " * * "; } else { - $cronfile .= $month_delay." 0 0 */" . $matches[1] . " * "; - $month_delay += 7; + $cronfile .= $day_delay." 0 */" . $matches[1] . " * * "; + $day_delay += 5; } break; + case "MONTH": + $cronfile .= $month_delay." 0 0 */" . $matches[1] . " * "; + $month_delay += 7; + break; case "WEEK": $cronfile .= $day_delay." 0 " . ($matches[1] * 7) . " * * "; $day_delay += 5;