Skip to content

Commit fbd5bb3

Browse files
authored
[Bugfix] toBits number format (alexjustesen#483)
1 parent b3faa22 commit fbd5bb3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

app/helpers.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,7 @@ function convertSize(float $input, string $output = 'MB', int $precision = 4): f
2020
*/
2121
function toBits(float $size, int $precision = 4): float
2222
{
23-
if (! $size > 0) {
24-
return 0;
25-
}
26-
27-
return (float) number_format(($size * 8), $precision);
23+
return (float) number_format(($size * 8), $precision, '.', '');
2824
}
2925
}
3026

0 commit comments

Comments
 (0)