diff --git a/lib/units.js b/lib/units.js index 7220fd0..55a4c2a 100644 --- a/lib/units.js +++ b/lib/units.js @@ -58,7 +58,7 @@ const bytesToSize = bytes => { if (bytes === 0) return '0'; const exp = Math.floor(Math.log(bytes) / Math.log(1000)); const size = bytes / 1000 ** exp; - const short = Math.round(size, 2); + const short = Math.round(size); const unit = SIZE_UNITS[exp]; return short + unit; };