integrity: add stats
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user