]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/selection: tweak computation of RTT estimates
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 29 Dec 2020 14:51:50 +0000 (15:51 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 31 Dec 2020 14:36:11 +0000 (15:36 +0100)
commitb3a8bbb42e0e1bab9ea5e71f96ddd86574774227
tree457c9ba7826b417576a18dff7750e79bca6c3103
parent5b1883f3555845d86a344b98bd66032530605832
lib/selection: tweak computation of RTT estimates

- fix switched \alpha and \beta from the RFC (no big deal, I think)
- use the same order as in the RFC (perhaps that caused the switch?)
- avoid floating-point arithmetics (it's simple with these formulas)
- simplify the the backoff formula (MINs instead of branches)
lib/selection.c