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.
1 parent ee0dd0f commit 6f08422Copy full SHA for 6f08422
app/code/Magento/MediaGalleryUi/Model/GetAssetDetails.php
@@ -81,12 +81,12 @@ public function execute(AssetInterface $asset): array
81
/**
82
* Format image size
83
*
84
- * @param int $imageSize
+ * @param int $size
85
* @return string
86
*/
87
- private function formatSize(int $imageSize): string
+ private function formatSize(int $size): string
88
{
89
- return $imageSize === 0 ? '' : sprintf('%sKb', $imageSize / 1000);
+ return $size === 0 ? '' : sprintf('%.2f KB', $size / 1024);
90
}
91
92
0 commit comments