diff --git a/crates/librqbit/webui/src/helper/formatBytes.ts b/crates/librqbit/webui/src/helper/formatBytes.ts index 99f0099d..41c20fc7 100644 --- a/crates/librqbit/webui/src/helper/formatBytes.ts +++ b/crates/librqbit/webui/src/helper/formatBytes.ts @@ -2,7 +2,7 @@ export function formatBytes(bytes: number): string { if (bytes === 0) return "0 Bytes"; const k = 1024; - const sizes = ["Bytes", "KB", "MB", "GB"]; + const sizes = ["Bytes", "KB", "MB", "GB", "TB", "PB"]; const i = Math.floor(Math.log(bytes) / Math.log(k));