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 4477d40 commit f123d8bCopy full SHA for f123d8b
app/utils/file.js
@@ -13,7 +13,7 @@ export const humanReadableBytes = (sizeInKb, absolute = true, si = true) => {
13
do {
14
bytes /= thresh;
15
++u;
16
- } while (Math.abs(bytes) >= thresh && u < units.length - 1);
+ } while (Math.round(Math.abs(bytes)*100)/100 >= thresh && u < units.length - 1);
17
return `${bytes.toFixed(absolute ? 0 : 1)} ${units[u]}`;
18
};
19
0 commit comments