High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
feat(web): prefer higher GiB values (#5340)
Jason Rasmussenebd64ded6236
diff --git a/web/src/lib/utils/byte-units.ts b/web/src/lib/utils/byte-units.tsindex 4a41a23bc5..97afe1285e 100644--- a/web/src/lib/utils/byte-units.ts+++ b/web/src/lib/utils/byte-units.ts@@ -9,7 +9,7 @@* @returns size (number) and unit (string)*/export function getBytesWithUnit(bytes: number, maxPrecision = 1): [number, string] {- const units = ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB'];+ const units = ['B', 'KiB', 'MiB', 'GiB'];let magnitude = 0;let remainder = bytes;