forked from I2P_Developers/i2p.i2p
Utils: CoDel minor speedup (ticket #2398)
This commit is contained in:
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user