ndpiReader: fix guessed_flow_protocols statistic (#2203)

Increment the counter only if the flow has been guessed
This commit is contained in:
Ivan Nardi
2023-12-12 19:44:03 +01:00
committed by GitHub
parent 7b5354588b
commit 241c42ad7e
432 changed files with 43 additions and 825 deletions
+1 -1
View File
@@ -1744,7 +1744,7 @@ static struct ndpi_proto packet_processing(struct ndpi_workflow * workflow,
flow->detected_protocol = ndpi_detection_giveup(workflow->ndpi_struct, flow->ndpi_flow,
enable_protocol_guess, &proto_guessed);
if(enable_protocol_guess) workflow->stats.guessed_flow_protocols++;
if(proto_guessed) workflow->stats.guessed_flow_protocols++;
}
process_ndpi_collected_info(workflow, flow);