Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kanyxmo committed Sep 20, 2023
1 parent 9afda22 commit 18b726b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helper/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ function format_size(int $size): string
$index = 0;
for ($i = 0; $size >= 1024 && $i < 5; $i++) {
$size /= 1024;
$index = $i + 1;
$index = $i;
}
return round($size, 2) . $units[$index];
}
Expand Down

0 comments on commit 18b726b

Please sign in to comment.