This commit is contained in:
ryan
2026-07-13 15:08:40 +08:00
parent 08e8eea932
commit 1eff7878a1
441 changed files with 26491 additions and 18405 deletions
+2 -2
View File
@@ -25,7 +25,7 @@ export function formatBytes(
value?: number | null,
options: FormatBytesOptions = {},
) {
const {emptyText = '—', zeroText = '0 B'} = options;
const { emptyText = '—', zeroText = '0 B' } = options;
if (value === undefined || value === null || Number.isNaN(value)) {
return emptyText;
@@ -80,4 +80,4 @@ export function calculateNiceAxisMax(values: number[]) {
const niceStep = steps.find((step) => normalized <= step) ?? 10;
return niceStep * magnitude;
}
}