diff options
author | Simon Rettberg | 2020-10-27 13:58:37 +0100 |
---|---|---|
committer | Simon Rettberg | 2020-10-27 13:58:37 +0100 |
commit | 38b9af21994f18da072a789d87af2afdb9efc7c7 (patch) | |
tree | 5dc50fa42098f21e43a826e4f99140636f06df5c /modules-available/statistics/inc | |
parent | [serversetup-bwlp-ipxe] Empty menu item title = use bootentry title (diff) | |
download | slx-admin-38b9af21994f18da072a789d87af2afdb9efc7c7.tar.gz slx-admin-38b9af21994f18da072a789d87af2afdb9efc7c7.tar.xz slx-admin-38b9af21994f18da072a789d87af2afdb9efc7c7.zip |
[statistics] Fix detection of machines with no HDD
This was broken in two ways: The filters were renamed, but we still
tried to match the old names (since these are strings :(), and then we
need to ignore devicemapper devices reported on MaxiLinux.
Diffstat (limited to 'modules-available/statistics/inc')
-rw-r--r-- | modules-available/statistics/inc/statisticsfilterset.inc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules-available/statistics/inc/statisticsfilterset.inc.php b/modules-available/statistics/inc/statisticsfilterset.inc.php index a96102dc..a38f9d3f 100644 --- a/modules-available/statistics/inc/statisticsfilterset.inc.php +++ b/modules-available/statistics/inc/statisticsfilterset.inc.php @@ -40,13 +40,13 @@ class StatisticsFilterSet public function isNoId44Filter() { - $filter = $this->hasFilter('Id44Filter'); + $filter = $this->hasFilter('Id44GbStatisticsFilter'); return $filter !== false && $filter->argument == 0; } public function filterNonClients() { - if (Module::get('runmode') === false || $this->hasFilter('IsClientFilter') !== false) + if (Module::get('runmode') === false || $this->hasFilter('IsClientStatisticsFilter') !== false) return; $this->cache = false; // Runmode module exists, add filter |