Skip to content

Commit

Permalink
ndpiReader: fix statistic about total number of flows (#2622)
Browse files Browse the repository at this point in the history
When capturing live traffic, accounting and export of expired flows is
 wrong (see #2617).
Let's try to fix some statistics, at least
  • Loading branch information
IvanNardi authored Nov 18, 2024
1 parent f2ef6e1 commit d7d9425
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -2828,7 +2828,6 @@ static void node_idle_scan_walker(const void *node, ndpi_VISIT which, int depth,
undetected_flows_deleted = 1;

ndpi_flow_info_free_data(flow);
ndpi_thread_info[thread_id].workflow->stats.ndpi_flow_count--;

/* adding to a queue (we can't delete it from the tree inline ) */
ndpi_thread_info[thread_id].idle_flows[ndpi_thread_info[thread_id].num_idle_flows++] = flow;
Expand Down

0 comments on commit d7d9425

Please sign in to comment.