We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acec0d4 commit 7c6c673Copy full SHA for 7c6c673
1 file changed
src/main/java/org/archive/io/RecordingOutputStream.java
@@ -296,7 +296,7 @@ protected void checkLimits() throws RecorderIOException {
296
throw new RecorderTimeoutException();
297
}
298
// need to throttle reading to hit max configured rate?
299
- if(position/duration > maxRateBytesPerMs) {
+ if(position/duration >= maxRateBytesPerMs) {
300
long desiredDuration = position / maxRateBytesPerMs;
301
try {
302
Thread.sleep(desiredDuration-duration);
0 commit comments