Skip to content

Commit 6a6c72f

Browse files
Eternal-Risetshemsedinov
authored andcommitted
Remove useless parameter for Math.floor
PR-URL: #64
1 parent 0a9c8a8 commit 6a6c72f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/utilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const bytesToSize = (bytes) => {
122122
if (bytes === 0) return '0';
123123
const exp = Math.floor(Math.log(bytes) / Math.log(1000));
124124
const size = bytes / 1000 ** exp;
125-
const short = Math.round(size, 2);
125+
const short = Math.round(size);
126126
const unit = exp === 0 ? '' : ' ' + SIZE_UNITS[exp - 1];
127127
return short.toString() + unit;
128128
};

0 commit comments

Comments
 (0)