From d7d942586aaee89968f458e95acafe260dbdda7c Mon Sep 17 00:00:00 2001 From: Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:01:53 +0100 Subject: ndpiReader: fix statistic about total number of flows (#2622) When capturing live traffic, accounting and export of expired flows is wrong (see #2617). Let's try to fix some statistics, at least --- example/ndpiReader.c | 1 - 1 file changed, 1 deletion(-) diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 8ae077eb4..f746dfe3d 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -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; -- cgit v1.2.3