# HG changeset patch # User Dan # Date 1223785916 14400 # Node ID b07b23187b17e8cdd44a8896fbbcfe99348054f7 # Parent 01c6a003d762430498172918d758632d9b330a92 OK, *now* it should actually cycle the data once a day diff -r 01c6a003d762 -r b07b23187b17 modules/stats.php --- a/modules/stats.php Sat Oct 11 20:31:22 2008 -0400 +++ b/modules/stats.php Sun Oct 12 00:31:56 2008 -0400 @@ -233,9 +233,6 @@ function stats_cron() { - global $stats_day; - $stats_day = gmdate('Ymd'); - static $commit_time = 0; $now = time(); // commit to disk every 1 minute @@ -249,6 +246,7 @@ function stats_commit() { global $stats_data, $stats_day; + ob_start(); var_export($stats_data); $stats_data_exported = ob_get_contents(); @@ -259,5 +257,16 @@ return false; fwrite($fp, "