diff options
author | Simon Rettberg | 2017-04-24 16:05:13 +0200 |
---|---|---|
committer | Simon Rettberg | 2017-04-24 16:05:13 +0200 |
commit | e9aa7ceb89c487f5d2c2bb102f67618ebfcae08b (patch) | |
tree | 91bc5375129ab424baa51d591daf8858c7b07e82 /modules-available/statistics_reporting/hooks/cron.inc.php | |
parent | [inc/Database] Add ::queryAll() (diff) | |
download | slx-admin-e9aa7ceb89c487f5d2c2bb102f67618ebfcae08b.tar.gz slx-admin-e9aa7ceb89c487f5d2c2bb102f67618ebfcae08b.tar.xz slx-admin-e9aa7ceb89c487f5d2c2bb102f67618ebfcae08b.zip |
[statistics_reporting] Extend remote report by hwstats, date ranges, userstats
This implements #3108
Diffstat (limited to 'modules-available/statistics_reporting/hooks/cron.inc.php')
-rw-r--r-- | modules-available/statistics_reporting/hooks/cron.inc.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules-available/statistics_reporting/hooks/cron.inc.php b/modules-available/statistics_reporting/hooks/cron.inc.php index afb18a23..14597f7d 100644 --- a/modules-available/statistics_reporting/hooks/cron.inc.php +++ b/modules-available/statistics_reporting/hooks/cron.inc.php @@ -7,10 +7,9 @@ if (RemoteReport::isReportingEnabled()) { while ($nextReporting <= time()) { RemoteReport::writeNextReportingTimestamp(); - $from = strtotime("-7 days", $nextReporting); $to = $nextReporting; - $statisticsReport = json_encode(RemoteReport::generateReport($from, $to)); + $statisticsReport = json_encode(RemoteReport::generateReport($to)); $params = array("action" => "statistics", "data" => $statisticsReport); |