Skip to content

Commit

Permalink
fix derp
Browse files Browse the repository at this point in the history
  • Loading branch information
gafferongames committed Sep 17, 2024
1 parent 392d29a commit 3e6aa43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion reliable.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
}
}
Expand Down
3 changes: 1 addition & 2 deletions stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,10 @@ void stats_iteration( double time )
float sent_bandwidth_kbps, received_bandwidth_kbps, acked_bandwidth_kbps;
reliable_endpoint_bandwidth( global_context.client, &sent_bandwidth_kbps, &received_bandwidth_kbps, &acked_bandwidth_kbps );

printf( "%" PRIi64 " sent | %" PRIi64 " received | %" PRIi64 " acked | rtt avg = %dms | rtt min = %dms | jitter = %dms | packet loss = %d%% | sent = %dkbps | recv = %dkbps | acked = %dkbps\n",
printf( "%" PRIi64 " sent | %" PRIi64 " received | %" PRIi64 " acked | rtt = %dms | jitter = %dms | packet loss = %d%% | sent = %dkbps | recv = %dkbps | acked = %dkbps\n",
counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_SENT],
counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_RECEIVED],
counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_ACKED],
(int) reliable_endpoint_rtt( global_context.client ),
(int) reliable_endpoint_rtt_min( global_context.client ),
(int) reliable_endpoint_jitter( global_context.client ),
(int) ( reliable_endpoint_packet_loss( global_context.client ) + 0.5f ),
Expand Down

0 comments on commit 3e6aa43

Please sign in to comment.