Skip to content

Commit

Permalink
Fixes accounting of number of processed packets in ndpi_internal_dete…
Browse files Browse the repository at this point in the history
…ction_process_packet()
  • Loading branch information
lucaderi committed Jun 4, 2024
1 parent 81e42b7 commit 85587a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/ndpi_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8315,6 +8315,7 @@ static ndpi_protocol ndpi_internal_detection_process_packet(struct ndpi_detectio
if((!flow) || (!ndpi_str) || (ndpi_str->finalized != 1))
return(ret);

flow->num_processed_pkts++;
packet = &ndpi_str->packet;

NDPI_LOG_DBG(ndpi_str, "[%d/%d] START packet processing\n",
Expand All @@ -8337,7 +8338,6 @@ static ndpi_protocol ndpi_internal_detection_process_packet(struct ndpi_detectio
return(ret); /* Avoid spending too much time with this flow */
}

flow->num_processed_pkts++;
ndpi_str->current_ts = current_time_ms;

/* Init default */
Expand Down

0 comments on commit 85587a8

Please sign in to comment.