Use all tokens for pacing

There is no need for leaving the last token inside the bucket unused.
This commit is contained in:
Matthias Einwag
2021-01-20 19:15:22 +00:00
committed by Dirkjan Ochtman
parent c07201d765
commit 49e57a2f41
+1 -1
View File
@@ -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;
}