Fix copy-throttling bug
This commit is contained in:
parent
494f7f9bfb
commit
1e0ed7ee17
@ -20,7 +20,7 @@ module.exports = class Throttler extends Transform {
|
||||
this.bytesPerSecondHistory.push(this.byteCount);
|
||||
this.byteCount = 0;
|
||||
|
||||
if (this.bytesPerSecondHistory > this.sampleLength) {
|
||||
if (this.bytesPerSecondHistory.length > this.sampleLength) {
|
||||
this.bytesPerSecondHistory.shift();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user