backuptask: track copy and upload statistics

This commit is contained in:
Girish Ramakrishnan
2025-10-20 13:22:51 +02:00
parent 854661e2d4
commit 07732310c1
7 changed files with 52 additions and 41 deletions

View File

@@ -22,8 +22,8 @@ class ProgressStream extends TransformStream {
}
stats() {
const totalMsecs = Date.now() - this.#startTime;
return { startTime: this.#startTime, totalMsecs, transferred: this.#transferred };
const duration = Date.now() - this.#startTime;
return { startTime: this.#startTime, duration, transferred: this.#transferred };
}
_start() {