refactor information widgets

This commit is contained in:
Ben Phelps 2022-08-27 00:55:13 +03:00
parent 1124f55361
commit b61ec9836e
10 changed files with 208 additions and 120 deletions

View file

@ -19,5 +19,5 @@ export function formatBytes(bytes, decimals = 2) {
const i = Math.floor(Math.log(bytes) / Math.log(k));
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + " " + sizes[i];
return parseFloat(bytes / Math.pow(k, i)).toFixed(dm) + " " + sizes[i];
}