Skip to content

Commit

Permalink
fix calculate byte
Browse files Browse the repository at this point in the history
  • Loading branch information
GiaPhu811 committed Aug 22, 2024
1 parent e339f47 commit e5ca62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/aesirx-dam-app/src/components/Storage/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const mbToByte = 1000000;
function formatBytes(bytes, decimals = 2) {
if (!+bytes) return 0;

const k = 1024;
const k = 1000;
const dm = decimals < 0 ? 0 : decimals;
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];

Expand Down

0 comments on commit e5ca62e

Please sign in to comment.