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 0a9c8a8 commit 6a6c72fCopy full SHA for 6a6c72f
1 file changed
lib/utilities.js
@@ -122,7 +122,7 @@ const bytesToSize = (bytes) => {
122
if (bytes === 0) return '0';
123
const exp = Math.floor(Math.log(bytes) / Math.log(1000));
124
const size = bytes / 1000 ** exp;
125
- const short = Math.round(size, 2);
+ const short = Math.round(size);
126
const unit = exp === 0 ? '' : ' ' + SIZE_UNITS[exp - 1];
127
return short.toString() + unit;
128
};
0 commit comments