diff --git a/source/yojimbo_base_client.cpp b/source/yojimbo_base_client.cpp index 2c0c1ca6..9dadf2c2 100644 --- a/source/yojimbo_base_client.cpp +++ b/source/yojimbo_base_client.cpp @@ -288,7 +288,7 @@ namespace yojimbo info.numPacketsAcked = counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_ACKED]; info.RTT = reliable_endpoint_rtt( m_endpoint ); info.minRTT = reliable_endpoint_rtt_min( m_endpoint ); - info.maxRTT = reliable_endpoint_rtt_min( m_endpoint ); + info.maxRTT = reliable_endpoint_rtt_max( m_endpoint ); info.averageRTT = reliable_endpoint_rtt_avg( m_endpoint ); info.averageJitter = reliable_endpoint_jitter_avg_vs_min_rtt( m_endpoint ); info.maxJitter = reliable_endpoint_jitter_max_vs_min_rtt( m_endpoint ); diff --git a/source/yojimbo_base_server.cpp b/source/yojimbo_base_server.cpp index f2bb1510..5cfcdc39 100644 --- a/source/yojimbo_base_server.cpp +++ b/source/yojimbo_base_server.cpp @@ -301,7 +301,7 @@ namespace yojimbo info.numPacketsAcked = counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_ACKED]; info.RTT = reliable_endpoint_rtt( m_clientEndpoint[clientIndex] ); info.minRTT = reliable_endpoint_rtt_min( m_clientEndpoint[clientIndex] ); - info.maxRTT = reliable_endpoint_rtt_min( m_clientEndpoint[clientIndex] ); + info.maxRTT = reliable_endpoint_rtt_max( m_clientEndpoint[clientIndex] ); info.averageRTT = reliable_endpoint_rtt_avg( m_clientEndpoint[clientIndex] ); info.averageJitter = reliable_endpoint_jitter_avg_vs_min_rtt( m_clientEndpoint[clientIndex] ); info.maxJitter = reliable_endpoint_jitter_max_vs_min_rtt( m_clientEndpoint[clientIndex] );