Update ForkBB\size() function
This commit is contained in:
parent
f40f76f0c6
commit
2bc017bc6e
1 changed files with 1 additions and 1 deletions
|
@ -151,7 +151,7 @@ function size(int $size): string
|
|||
{
|
||||
$units = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB'];
|
||||
|
||||
for ($i = 0; $size > 1024; ++$i) {
|
||||
for ($i = 0; $size >= 1024; ++$i) {
|
||||
$size /= 1024;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue