Don't clear out old daily logs unless the run was complete.

This commit is contained in:
mjollnir_ 2005-09-27 21:09:10 +00:00
parent a3a031ce80
commit aff2511993

View File

@ -203,7 +203,9 @@
if ($return == STATS_RUN_COMPLETE) {
$return = stats_cron_monthly();
}
stats_clean_old();
if ($return == STATS_RUN_COMPLETE) {
stats_clean_old();
}
set_cron_lock('statsrunning',false);
if (!empty($firsttime)) {
set_cron_lock('statsfirstrunlock',false);