mirror of
https://github.com/immich-app/immich.git
synced 2025-11-15 11:32:35 +09:00
fix(web): storage decimals (#5363)
This commit is contained in:
@@ -21,7 +21,8 @@
|
||||
return '0'.repeat(zeroLength);
|
||||
};
|
||||
|
||||
$: [statsUsage, statsUsageUnit] = getBytesWithUnit(stats.usage, 0);
|
||||
const TiB = 1024 ** 4;
|
||||
$: [statsUsage, statsUsageUnit] = getBytesWithUnit(stats.usage, stats.usage > TiB ? 2 : 0);
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col gap-5">
|
||||
|
||||
Reference in New Issue
Block a user