diff options
author | Luca Deri <deri@ntop.org> | 2021-03-30 17:49:48 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2021-03-30 17:49:48 +0200 |
commit | fcbc16da002d6c08ecbff6567b6e8462238358d1 (patch) | |
tree | 2f40af44abf3fa9e9f22422dda5bfc1d85e0e881 /example/ndpiReader.c | |
parent | ffbce931b981f466bdb82ce8ab757f871997e822 (diff) |
Fixed invalid guess stats
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 8854a7d23..9d0bbe8a2 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1542,6 +1542,8 @@ static void node_proto_guess_walker(const void *node, ndpi_VISIT which, int dept flow->detected_protocol = ndpi_detection_giveup(ndpi_thread_info[0].workflow->ndpi_struct, flow->ndpi_flow, enable_protocol_guess, &proto_guessed); + + if(enable_protocol_guess) ndpi_thread_info[thread_id].workflow->stats.guessed_flow_protocols++; } process_ndpi_collected_info(ndpi_thread_info[thread_id].workflow, flow, csv_fp); |