We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fcb0e9d + ada4ddf commit df058abCopy full SHA for df058ab
1 file changed
src/Services/MemoryService.php
@@ -38,7 +38,7 @@ public function format(int $bytes): string
38
{
39
foreach ($this->sizes as $unit => $value) {
40
if ($bytes >= $value) {
41
- return sprintf('%.2f %s', $bytes >= 1024 ? $bytes / $value : $bytes, $unit);
+ return sprintf('%.2f %s', $bytes / $value, $unit);
42
}
43
44
0 commit comments