summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2022-02-27 15:29:58 +0100
committerSander Vrijders <sander@ouroboros.rocks>2022-03-03 12:06:04 +0100
commit9f25cb44491e219cc4c2b6243d334f07668a0cb5 (patch)
treebc5d37701ff01b7cf6db461b30016064bd632074 /src/lib
parenta9509290da36d6222c89d7770290571c5f4092ca (diff)
downloadouroboros-9f25cb44491e219cc4c2b6243d334f07668a0cb5.tar.gz
ouroboros-9f25cb44491e219cc4c2b6243d334f07668a0cb5.zip
lib: Fix RTT estimator invocation in FRCT
The notorious off-by-one hit again. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/frct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/frct.c b/src/lib/frct.c
index 42ce2152..15eb3b96 100644
--- a/src/lib/frct.c
+++ b/src/lib/frct.c
@@ -803,7 +803,7 @@ static void __frcti_rcv(struct frcti * frcti,
if (after(ackno, frcti->snd_cr.lwe))
frcti->snd_cr.lwe = ackno;
- if (frcti->probe && after(ackno, frcti->rttseq)) {
+ if (frcti->probe && !before(frcti->rttseq, ackno)) {
rtt_estimator(frcti, ts_diff_ns(&frcti->t_probe, &now));
frcti->probe = false;
}