integrity: add stats

This commit is contained in:
Girish Ramakrishnan
2026-02-15 14:31:09 +01:00
parent 9f2eefcbb3
commit c7b321315c
4 changed files with 113 additions and 11 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ class ProgressStream extends TransformStream {
}
stats() {
const duration = Date.now() - this.#startTime;
const duration = Date.now() - this.#startTime; // this is not at _stop time because other streams in pipeline might have to be taken into account
return { startTime: this.#startTime, duration, transferred: this.#transferred };
}