summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics_reporting/inc/remotereport.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics_reporting/inc/remotereport.inc.php')
-rw-r--r--modules-available/statistics_reporting/inc/remotereport.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/statistics_reporting/inc/remotereport.inc.php b/modules-available/statistics_reporting/inc/remotereport.inc.php
index f8f54a86..2de49d04 100644
--- a/modules-available/statistics_reporting/inc/remotereport.inc.php
+++ b/modules-available/statistics_reporting/inc/remotereport.inc.php
@@ -68,7 +68,7 @@ class RemoteReport
* @param int[] $days list of days to generate aggregated stats for
* @return array wrapped up statistics, ready for reporting
*/
- public static function generateReport($to, $days = false) {
+ public static function generateReport(int $to, $days = false) {
if ($days === false) {
$days = [7, 30, 90];
}
@@ -89,6 +89,7 @@ class RemoteReport
$data['tsTo'] = $to;
$data['dozmod'] = Queries::getDozmodStats($from, $to);
$data['machines'] = Queries::getAggregatedMachineStats($from);
+ $data['exams'] = Queries::getExamStats($from, $to);
$result['days' . $day] = $data;
}
$result['server'] = self::getLocalHardware();