Skip to content

Commit 05a351c

Browse files
rootroot
authored andcommitted
Memory value rounding
1 parent 2953ebe commit 05a351c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CraftyController/CraftyController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ private function decodeSizeToGB($size)
127127
$value = (float)$matches[1];
128128
$unit = $matches[2];
129129

130-
return $value * ($units[$unit] ?? 1);
130+
return round($value * ($units[$unit] ?? 1), 1);
131131
}
132132

133133
return false; // Invalid format

0 commit comments

Comments
 (0)