mirror of
https://github.com/hcengineering/platform.git
synced 2024-11-22 03:14:40 +03:00
Print downloaded fix for backup (#6588)
This commit is contained in:
parent
ec6b6fb568
commit
c3a41ea1bb
@ -609,7 +609,10 @@ export async function backup (
|
||||
let downloadedMb = 0
|
||||
let downloaded = 0
|
||||
|
||||
const printDownloaded = (msg: string, size: number): void => {
|
||||
const printDownloaded = (msg: string, size?: number | null): void => {
|
||||
if (size == null || Number.isNaN(size)) {
|
||||
return
|
||||
}
|
||||
downloaded += size
|
||||
const newDownloadedMb = Math.round(downloaded / (1024 * 1024))
|
||||
const newId = Math.round(newDownloadedMb / 10)
|
||||
|
Loading…
Reference in New Issue
Block a user