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.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 {