mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-25 12:57:07 +00:00
Use all tokens for pacing
There is no need for leaving the last token inside the bucket unused.
This commit is contained in:
committed by
Dirkjan Ochtman
parent
c07201d765
commit
49e57a2f41
@@ -48,7 +48,7 @@ impl Pacer {
|
||||
);
|
||||
|
||||
// if we can already send a packet, there is no need for delay
|
||||
if self.tokens > mtu.into() {
|
||||
if self.tokens >= mtu.into() {
|
||||
return None;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user