]> git.mxchange.org Git - friendica-addons.git/commitdiff
Statistics: Changed statistics calculation to 24 hours.
authorMichael Vogel <icarus@dabo.de>
Sun, 2 Mar 2014 00:45:59 +0000 (01:45 +0100)
committerMichael Vogel <icarus@dabo.de>
Sun, 2 Mar 2014 00:45:59 +0000 (01:45 +0100)
statistics_json/statistics_json.php

index 1fe96f515d4715ce030eed8f2ecaea7d1d922ffc..494904ba1401c0f9ab4a4b81efd3448ce23b9c84 100644 (file)
@@ -42,8 +42,8 @@ function statistics_json_cron($a,$b) {
        $last = get_config('statistics_json','last_calucation');
 
        if($last) {
-               // Calculate all 6 hours
-               $next = $last + (360 * 60);
+               // Calculate every 24 hours
+               $next = $last + (24 * 60 * 60);
                if($next > time()) {
                        logger('statistics_json_cron: calculation intervall not reached');
                        return;