Skip to content

Commit

Permalink
ndpiReader: fix statistic about total number of flows
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 committed Nov 18, 2024
1 parent f2ef6e1 commit 54d00fd
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 54d00fd

Please sign in to comment.