From b881662d72f21a171639fc6079052ce776cc9b2c Mon Sep 17 00:00:00 2001 From: Glenn Fiedler Date: Thu, 19 Sep 2024 13:03:42 -0400 Subject: [PATCH] spot fix --- reliable/reliable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reliable/reliable.c b/reliable/reliable.c index 1c164db8..b9b76ae7 100644 --- a/reliable/reliable.c +++ b/reliable/reliable.c @@ -1433,7 +1433,7 @@ void reliable_endpoint_update( struct reliable_endpoint_t * endpoint, double tim { if ( endpoint->rtt_history_buffer[i] >= 0.0f ) { - float deviation = ( endpoint->rtt_history_buffer[i] - endpoint->rtt_min ); + float deviation = ( endpoint->rtt_history_buffer[i] - endpoint->rtt_avg ); sum += deviation * deviation; count++; }