diff --git a/web-ui/src/main/resources/catalog/components/filestore/FileStoreDirective.js b/web-ui/src/main/resources/catalog/components/filestore/FileStoreDirective.js index 6ed981f1f17..eccd2a40e0b 100644 --- a/web-ui/src/main/resources/catalog/components/filestore/FileStoreDirective.js +++ b/web-ui/src/main/resources/catalog/components/filestore/FileStoreDirective.js @@ -93,8 +93,8 @@ var humanizeDataSize = function (bytes) { if (bytes === 0) return "0 Bytes"; - const sizes = ["Bytes", "KB", "MB", "GB", "TB"]; - const i = Math.floor(Math.log(bytes) / Math.log(1024)); // Determine the index for sizes + var sizes = ["Bytes", "KB", "MB", "GB", "TB"]; + var i = Math.floor(Math.log(bytes) / Math.log(1024)); // Determine the index for sizes return parseFloat((bytes / Math.pow(1024, i)).toFixed(2)) + " " + sizes[i]; // Format size };