Commit a44206de authored by Joanne Hugé's avatar Joanne Hugé

Fix small mistake

parent 70b0fa2c
......@@ -151,7 +151,7 @@ static void *packet_receiving_thread(void *p) {
// Check if packets were lost
current_packet_id = atoi(param->stats.packet_info.data);
param->stats.lost_packets += current_packet_id - prev_packet_id - 1;
param->stats.lost_packets += (current_packet_id - prev_packet_id) % 1000 - 1;
if(enable_histograms) {
dist_to_interval = (((int64_t)diff) - param->interval) / 1000;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment