mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 22:28:48 +00:00
refactor information widgets
This commit is contained in:
parent
1124f55361
commit
b61ec9836e
10 changed files with 208 additions and 120 deletions
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue