diff --git a/scm-ui-components/packages/ui-components/src/FileSize.js b/scm-ui-components/packages/ui-components/src/FileSize.js index c7d966d901..2796e0fd0c 100644 --- a/scm-ui-components/packages/ui-components/src/FileSize.js +++ b/scm-ui-components/packages/ui-components/src/FileSize.js @@ -12,9 +12,9 @@ class FileSize extends React.Component { } const units = ["B", "K", "M", "G", "T", "P", "E", "Z", "Y"]; - const i = Math.floor(Math.log(bytes) / Math.log(1024)); + const i = Math.floor(Math.log(bytes) / Math.log(1000)); - const size = i === 0 ? bytes : (bytes / 1024 ** i).toFixed(2); + const size = i === 0 ? bytes : (bytes / 1000 ** i).toFixed(2); return `${size} ${units[i]}`; }