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/pages/list.inc.php | |
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/pages/list.inc.php')
-rw-r--r-- | modules-available/statistics/pages/list.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/list.inc.php b/modules-available/statistics/pages/list.inc.php index 9f2df897..96e8bea6 100644 --- a/modules-available/statistics/pages/list.inc.php +++ b/modules-available/statistics/pages/list.inc.php @@ -84,7 +84,7 @@ class SubPage $row['hostname'] = $row['clientip']; } if (isset($row['data'])) { - if (!preg_match('/^(Disk.* bytes|Disk.*\d{5,} sectors)/m', $row['data'])) { + if (!preg_match('#^Disk.* /dev/[^d].* (bytes$|sectors,)$#m', $row['data'])) { $row['nohdd'] = true; } } |