From d082f7902e5e5904859e03bf377cb442c6465c37 Mon Sep 17 00:00:00 2001 From: mathieuRA Date: Wed, 18 Sep 2024 10:46:44 +0200 Subject: [PATCH] do not inline code --- @xen-orchestra/backups/RemoteAdapter.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/@xen-orchestra/backups/RemoteAdapter.mjs b/@xen-orchestra/backups/RemoteAdapter.mjs index 3c4d9cae9af..1905a4e6a50 100644 --- a/@xen-orchestra/backups/RemoteAdapter.mjs +++ b/@xen-orchestra/backups/RemoteAdapter.mjs @@ -845,9 +845,10 @@ export class RemoteAdapter { return this.#computeTotalBackupSizeRecursively(await this.listAllVmBackups()) } - // @TODO: add `getTotalXoBackupSize` and `getTotalPoolBackupSize` once `size` is implemented async getTotalBackupSize() { - return this.#computeTotalBackupSizeRecursively(await Promise.all([this.getTotalVmBackupSize()])) + const vmBackupSize = await this.getTotalVmBackupSize() + // @TODO: add `getTotalXoBackupSize` and `getTotalPoolBackupSize` once `size` is implemented by fs + return vmBackupSize } }