From 54d00fd96741b188511a6fdf6ac3663109777e12 Mon Sep 17 00:00:00 2001 From: Ivan Nardi Date: Mon, 18 Nov 2024 11:55:43 +0100 Subject: [PATCH] ndpiReader: fix statistic about total number of flows 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 8ae077eb44f..f746dfe3da4 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;