From 85587a8f9871f59a931634651fc3df52ca3e9aad Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Tue, 4 Jun 2024 17:00:45 +0200 Subject: Fixes accounting of number of processed packets in ndpi_internal_detection_process_packet() --- src/lib/ndpi_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/lib/ndpi_main.c b/src/lib/ndpi_main.c index 942054b06..30411df9e 100644 --- a/src/lib/ndpi_main.c +++ b/src/lib/ndpi_main.c @@ -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", @@ -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 */ -- cgit v1.2.3