Fix for blobs backup (#6751)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2024-09-27 12:24:29 +05:00
committed by GitHub
parent b359d080ac
commit 28dbc1bae5
3 changed files with 79 additions and 19 deletions
@@ -196,7 +196,13 @@
{#if isAdmin && ws.lastVisit != null && ws.lastVisit !== 0}
<div class="text-sm">
{#if ws.backupInfo != null}
{ws.backupInfo.backupSize}Mb -
{@const sz = ws.backupInfo.dataSize + ws.backupInfo.blobsSize}
{@const szGb = Math.round((sz * 100) / 1024) / 100}
{#if szGb > 0}
{Math.round((sz * 100) / 1024) / 100}Gb -
{:else}
{Math.round(sz)}Mb -
{/if}
{/if}
({lastUsageDays} days)
</div>