Skip to content

Commit 55514b5

Browse files
committed
change partition usage unit GB -> MB
1 parent fe64fb6 commit 55514b5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

web/maintenance/systeminfo_api.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -287,16 +287,16 @@ function getPartitionUsage($path, $label)
287287
'unit' => '%'
288288
],
289289
$label . '_total' => [
290-
'value' => round($diskTotal / 1024 / 1024 / 1024, 2),
291-
'unit' => 'GB'
290+
'value' => round($diskTotal / 1024 / 1024, 2),
291+
'unit' => 'MB'
292292
],
293293
$label . '_used' => [
294-
'value' => round($diskUsed / 1024 / 1024 / 1024, 2),
295-
'unit' => 'GB'
294+
'value' => round($diskUsed / 1024 / 1024, 2),
295+
'unit' => 'MB'
296296
],
297297
$label . '_free' => [
298-
'value' => round($diskFree / 1024 / 1024 / 1024, 2),
299-
'unit' => 'GB'
298+
'value' => round($diskFree / 1024 / 1024, 2),
299+
'unit' => 'MB'
300300
]
301301
];
302302
}

0 commit comments

Comments
 (0)