diff options
author | Dimitri Staessens <[email protected]> | 2022-02-27 15:29:58 +0100 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2022-03-03 12:06:04 +0100 |
commit | 9f25cb44491e219cc4c2b6243d334f07668a0cb5 (patch) | |
tree | bc5d37701ff01b7cf6db461b30016064bd632074 /src/lib/frct.c | |
parent | a9509290da36d6222c89d7770290571c5f4092ca (diff) | |
download | ouroboros-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 <[email protected]>
Signed-off-by: Sander Vrijders <[email protected]>
Diffstat (limited to 'src/lib/frct.c')
-rw-r--r-- | src/lib/frct.c | 2 |
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; } |