summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages/machine.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/statistics/pages/machine.inc.php')
-rw-r--r--modules-available/statistics/pages/machine.inc.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index 4e8f9f34..0d91b017 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -508,11 +508,15 @@ class SubPage
$hdd[$row['prop']] = $row['numeric'] ?? $row['value'];
}
}
+ $result = [];
foreach ($hdds as $k => &$hdd) {
+ if (substr($hdd['dev'] ?? '/dev/sr', 0, 7) === '/dev/sr')
+ continue;
$hdd['devid'] = 'k' . $k;
$hdd['partitions'] = array_values($hdd['partitions']);
+ $result[] = $hdd;
}
- return array_values($hdds);
+ return $result;
}
private static function mangleHdd(array &$hdd)
@@ -702,4 +706,4 @@ class SubPage
return HardwareInfo::GPT[$type] ?? $type;
}
-} \ No newline at end of file
+}