From ddd3d33cde7df477fad52b8500a4f0dceecb0bf4 Mon Sep 17 00:00:00 2001 From: Glenn Fiedler Date: Tue, 17 Sep 2024 08:30:56 -0400 Subject: [PATCH] update reliable with jitter fix --- reliable/reliable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reliable/reliable.c b/reliable/reliable.c index 825d99fe..14d4c53d 100644 --- a/reliable/reliable.c +++ b/reliable/reliable.c @@ -1392,7 +1392,7 @@ void reliable_endpoint_update( struct reliable_endpoint_t * endpoint, double tim { if ( endpoint->rtt_history_buffer[i] >= 0.0f ) { - sum += endpoint->rtt_history_buffer[i]; + sum += ( endpoint->rtt_history_buffer[i] - endpoint->rtt_min ); count++; } }