traffic runs daily

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2014-01-14 09:38:26 +01:00
parent 5065f5e7e4
commit 1448796fa7

View File

@@ -56,18 +56,18 @@ function checkCrondConfigurationFile() {
$hour_delay += 3; $hour_delay += 3;
break; break;
case "DAY": case "DAY":
$cronfile .= $day_delay." 0 */" . $matches[1] . " * * ";
$day_delay += 5;
break;
case "MONTH":
if ($row_cronentry['cronfile'] == 'traffic') { if ($row_cronentry['cronfile'] == 'traffic') {
// traffic at exactly 0:00 o'clock // traffic at exactly 0:00 o'clock
$cronfile .= "0 0 0 */" . $matches[1] . " * "; $cronfile .= "0 0 */" . $matches[1] . " * * ";
} else { } else {
$cronfile .= $month_delay." 0 0 */" . $matches[1] . " * "; $cronfile .= $day_delay." 0 */" . $matches[1] . " * * ";
$month_delay += 7; $day_delay += 5;
} }
break; break;
case "MONTH":
$cronfile .= $month_delay." 0 0 */" . $matches[1] . " * ";
$month_delay += 7;
break;
case "WEEK": case "WEEK":
$cronfile .= $day_delay." 0 " . ($matches[1] * 7) . " * * "; $cronfile .= $day_delay." 0 " . ($matches[1] * 7) . " * * ";
$day_delay += 5; $day_delay += 5;