Setup: Fix sizes being displayed as bits instead of bytes

This commit is contained in:
Molkobain
2021-07-04 22:49:54 +02:00
parent d8f36a8aa9
commit 7ca689e190
2 changed files with 42 additions and 1 deletions

View File

@@ -982,7 +982,7 @@ class SetupUtils
public static function HumanReadableSize($fBytes)
{
$aSizes = array('bytes', 'Kb', 'Mb', 'Gb', 'Tb', 'Pb', 'Hb');
$aSizes = array('bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'HB');
$index = 0;
while (($fBytes > 1000) && ($index < count($aSizes))) {
$index++;