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++; }