Skip to content

Commit 3e6aa43

Browse files
committed
fix derp
1 parent 392d29a commit 3e6aa43

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

reliable.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ void reliable_endpoint_update( struct reliable_endpoint_t * endpoint, double tim
13921392
{
13931393
if ( endpoint->rtt_history_buffer[i] >= 0.0f )
13941394
{
1395-
sum += endpoint->rtt_history_buffer[i];
1395+
sum += ( endpoint->rtt_history_buffer[i] - endpoint->rtt_min );
13961396
count++;
13971397
}
13981398
}

stats.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,10 @@ void stats_iteration( double time )
217217
float sent_bandwidth_kbps, received_bandwidth_kbps, acked_bandwidth_kbps;
218218
reliable_endpoint_bandwidth( global_context.client, &sent_bandwidth_kbps, &received_bandwidth_kbps, &acked_bandwidth_kbps );
219219

220-
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",
220+
printf( "%" PRIi64 " sent | %" PRIi64 " received | %" PRIi64 " acked | rtt = %dms | jitter = %dms | packet loss = %d%% | sent = %dkbps | recv = %dkbps | acked = %dkbps\n",
221221
counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_SENT],
222222
counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_RECEIVED],
223223
counters[RELIABLE_ENDPOINT_COUNTER_NUM_PACKETS_ACKED],
224-
(int) reliable_endpoint_rtt( global_context.client ),
225224
(int) reliable_endpoint_rtt_min( global_context.client ),
226225
(int) reliable_endpoint_jitter( global_context.client ),
227226
(int) ( reliable_endpoint_packet_loss( global_context.client ) + 0.5f ),

0 commit comments

Comments
 (0)