fix torrent card

This commit is contained in:
jxxghp
2023-07-08 23:31:06 +08:00
parent 7844577b5b
commit 3e90c0b0fc
5 changed files with 76 additions and 19 deletions

View File

@@ -56,7 +56,7 @@ export const formatFileSize = (bytes: number) => {
throw new Error("字节数不能为负数。");
}
const units = ["B", "KB", "MB", "GB", "TB"];
const units = ["B", "K", "M", "G", "T"];
let size = bytes;
let unitIndex = 0;