Skip to content

Commit

Permalink
fix bug where network info didn't have new rtt and jitter fields fill…
Browse files Browse the repository at this point in the history
…ed in on the server
  • Loading branch information
gafferongames committed Sep 19, 2024
1 parent 5956043 commit 97c15a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/yojimbo_base_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,12 @@ namespace yojimbo
info.numPacketsReceived = counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_RECEIVED];
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.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] );
info.stddevJitter = reliable_endpoint_jitter_stddev_vs_avg_rtt( m_clientEndpoint[clientIndex] );
info.packetLoss = reliable_endpoint_packet_loss( m_clientEndpoint[clientIndex] );
reliable_endpoint_bandwidth( m_clientEndpoint[clientIndex], &info.sentBandwidth, &info.receivedBandwidth, &info.ackedBandwidth );
}
Expand Down

0 comments on commit 97c15a0

Please sign in to comment.