diff options
author | Simon Rettberg | 2022-10-26 15:16:10 +0200 |
---|---|---|
committer | Simon Rettberg | 2022-10-26 15:16:10 +0200 |
commit | 451faa21fb625a36c7216d39480ca8e579b03ed6 (patch) | |
tree | 8082763a6b4816fa3b58dda5bebfaaec6eb8b38e /modules-available/statistics/pages | |
parent | [inc/Database] Force utf8mb4 explicitly via SET NAMES (diff) | |
download | slx-admin-451faa21fb625a36c7216d39480ca8e579b03ed6.tar.gz slx-admin-451faa21fb625a36c7216d39480ca8e579b03ed6.tar.xz slx-admin-451faa21fb625a36c7216d39480ca8e579b03ed6.zip |
[statistics] Use partition numbers from kernel
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r-- | modules-available/statistics/pages/machine.inc.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php index 9b91e8a4..6368a2b7 100644 --- a/modules-available/statistics/pages/machine.inc.php +++ b/modules-available/statistics/pages/machine.inc.php @@ -530,7 +530,7 @@ class SubPage } elseif (preg_match('/^part_([0-9]+)_(.*)$/', $row['prop'], $out)) { // Partitions if (!isset($hdd['partitions'][$out[1]])) { - $hdd['partitions'][$out[1]] = ['id' => 'dev-' . count($hdds) . '-' . $out[1], 'index' => $out[1] + 1]; + $hdd['partitions'][$out[1]] = ['id' => 'dev-' . count($hdds) . '-' . $out[1], 'index' => $out[1]]; } $hdd['partitions'][$out[1]][$out[2]] = $row['numeric'] ?? $row['value']; } else { |