Permalink
Browse files

In rare cases (some timezones?) this while loop went forever because

    $timestart == $nextmidnight

which led to disks filling up   :-(
  • Loading branch information...
1 parent a1ecd20 commit 51034f13f8019f9347b15ce693cae2d2add6dd9c moodler committed Aug 14, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/statslib.php
View
@@ -98,7 +98,7 @@ function stats_cron_daily () {
$days = 0;
mtrace("starting at $timestart");
- while ($midnight >= $nextmidnight) {
+ while ($midnight > $nextmidnight && $timestart < $nextmidnight) {
$timesql = " (l.time > $timestart AND l.time < $nextmidnight) ";
begin_sql();

0 comments on commit 51034f1

Please sign in to comment.