Fix: auto-scale binary rate units instead of pinning to MiB/s (#6866)
Docker CI / Docker Build & Push (push) Has been cancelled
Lint / Linting Checks (push) Has been cancelled
Release Drafter / Update Release Draft (push) Has been cancelled
Release Drafter / Auto Label PR (push) Has been cancelled
Tests / vitest (1) (push) Has been cancelled
Tests / vitest (2) (push) Has been cancelled
Tests / vitest (3) (push) Has been cancelled
Tests / vitest (4) (push) Has been cancelled

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
TowyTowy
2026-07-13 15:27:07 +00:00
committed by GitHub
co-authored by Claude shamoon
parent e31a8f3776
commit 2c3b82a826
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ module.exports = {
const dm = options.decimals ? options.decimals : 0;
const i = options.binary ? 2 : Math.floor(Math.log(value) / Math.log(k));
const i = Math.floor(Math.log(value) / Math.log(k));
const formatted = new Intl.NumberFormat(lng, { maximumFractionDigits: dm, minimumFractionDigits: dm }).format(
parseFloat(value / k ** i),