diff --git a/src/Peer.ts b/src/Peer.ts index 47f3bb3ffa5a7e626b9203ee84347775e590ed10..85be6e37923466c9a941c9d90a337702f85010a9 100644 --- a/src/Peer.ts +++ b/src/Peer.ts @@ -173,9 +173,9 @@ export class Peer { txRatio: (this.txBytes > 0) ? this.txRequested / this.txBytes : 0.0, duration, }; + this.txRequested -= this.txBytes; this.txBytes = 0; this.rxBytes = 0; - this.txRequested = 0; this.lastStatsCall = time; }