Skip to content

Commit 8a252c6

Browse files
fix: kB for bytes
1 parent 47cdd97 commit 8a252c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ export function formatBytes(
315315
if (bytes === 0 && noDecimalForZero) return { value: "0", unit: "B" };
316316
if (bytes < 1_000) return { value: bytes.toFixed(precision), unit: "B" };
317317
if (bytes < 1_000_000)
318-
return { value: (bytes / 1_000).toFixed(precision), unit: "KB" };
318+
return { value: (bytes / 1_000).toFixed(precision), unit: "kB" };
319319
if (bytes < 1_000_000_000) {
320320
return { value: (bytes / 1_000_000).toFixed(precision), unit: "MB" };
321321
}

0 commit comments

Comments
 (0)