Commit 7c6e56a
committed
fix(server): Skip missed ticks instead of bursting in EWMA estimators
Tokio's default MissedTickBehavior::Burst fires catch-up ticks in
rapid succession after a delayed tick, making duration_since(last)
near-zero on catch-up iterations and inflating the rate estimate.
Skip is the right behavior for a rate estimator — recomputing stale
windows has no value.1 parent 426f1c7 commit 7c6e56a
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
380 | 380 | | |
381 | 381 | | |
382 | 382 | | |
| 383 | + | |
383 | 384 | | |
384 | 385 | | |
385 | 386 | | |
| |||
558 | 559 | | |
559 | 560 | | |
560 | 561 | | |
| 562 | + | |
561 | 563 | | |
562 | 564 | | |
563 | 565 | | |
| |||
0 commit comments