summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-10-26 15:16:10 +0200
committerSimon Rettberg2022-10-26 15:16:10 +0200
commit451faa21fb625a36c7216d39480ca8e579b03ed6 (patch)
tree8082763a6b4816fa3b58dda5bebfaaec6eb8b38e /modules-available/statistics/pages
parent[inc/Database] Force utf8mb4 explicitly via SET NAMES (diff)
downloadslx-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.php2
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 {