Utils: CoDel minor speedup (ticket #2398)

This commit is contained in:
zzz
2019-04-18 13:53:27 +00:00
parent ea7ddaf6d5
commit 5c81c00a18
2 changed files with 2 additions and 2 deletions

View File

@ -248,7 +248,7 @@ public class CoDelBlockingQueue<E extends CDQEntry> extends LinkedBlockingQueue<
if (!ok_to_drop) {
// sojurn time below target - leave dropping state
_dropping = false;
} else if (_now >= _drop_next) {
} else {
// It's time for the next drop. Drop the current packet and dequeue the next.
// The dequeue might take us out of dropping state. If not, schedule the next drop.
// A large backlog might result in drop rates so high that the next drop should happen now;

View File

@ -230,7 +230,7 @@ public class CoDelPriorityBlockingQueue<E extends CDPQEntry> extends PriBlocking
if (!ok_to_drop) {
// sojurn time below target - leave dropping state
_dropping = false;
} else if (_now >= _drop_next) {
} else {
// It's time for the next drop. Drop the current packet and dequeue the next.
// The dequeue might take us out of dropping state. If not, schedule the next drop.
// A large backlog might result in drop rates so high that the next drop should happen now;