Fix Backup info size display (#7540)

This commit is contained in:
Andrey Sobolev
2024-12-24 20:16:45 +07:00
committed by GitHub
parent b9cb463bfc
commit 30edf4ea8e
7 changed files with 38 additions and 12 deletions
@@ -189,7 +189,10 @@
{#if isAdmin && ws.lastVisit != null && ws.lastVisit !== 0}
<div class="text-sm">
{#if ws.backupInfo != null}
{@const sz = ws.backupInfo.dataSize + ws.backupInfo.blobsSize}
{@const sz = Math.max(
ws.backupInfo.backupSize,
ws.backupInfo.dataSize + ws.backupInfo.blobsSize
)}
{@const szGb = Math.round((sz * 100) / 1024) / 100}
{#if szGb > 0}
{Math.round((sz * 100) / 1024) / 100}Gb -