diff options
author | Simon Rettberg | 2020-11-09 13:43:51 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-11-09 13:43:51 +0100 |
commit | 88b17e55dd273ad0ad1099f6c5b26aff2c5b33a1 (patch) | |
tree | 147ee150b78dec3f1eb58021be395524754c70ca | |
parent | [dnbd3] Allow unit suffixes in advanced settings (diff) | |
download | slx-admin-88b17e55dd273ad0ad1099f6c5b26aff2c5b33a1.tar.gz slx-admin-88b17e55dd273ad0ad1099f6c5b26aff2c5b33a1.tar.xz slx-admin-88b17e55dd273ad0ad1099f6c5b26aff2c5b33a1.zip |
[statistics] Honor filters for clients with special mode
Closes #3808
-rw-r--r-- | modules-available/statistics/pages/summary.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/summary.inc.php b/modules-available/statistics/pages/summary.inc.php index 6fa37c61..ce67070e 100644 --- a/modules-available/statistics/pages/summary.inc.php +++ b/modules-available/statistics/pages/summary.inc.php @@ -84,7 +84,8 @@ class SubPage } $data['json'] = json_encode(array('labels' => $labels, 'datasets' => array($points1, $points2))); if (Module::get('runmode') !== false) { - $res = Database::queryFirst('SELECT Count(*) AS cnt FROM runmode'); + $res = Database::queryFirst('SELECT Count(*) AS cnt FROM machine m INNER JOIN runmode r USING (machineuuid)' + . " $join WHERE $where", $args); $data['runmode'] = $res['cnt']; } // Draw |