mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-19 07:43:01 +00:00
Implements count of aggregated flows in flow aggregation
This commit is contained in:
parent
c20e81a08d
commit
0837bf1b20
3 changed files with 16 additions and 1 deletions
|
|
@ -414,7 +414,15 @@ void NetworkInterface::aggregatePartialFlow(Flow *flow) {
|
|||
}
|
||||
|
||||
if(aggregatedFlow) {
|
||||
aggregatedFlow->sumFlowStats(flow);
|
||||
aggregatedFlow->sumFlowStats(flow,
|
||||
/* nextFlowAggregation will be decremented by one after the current periodic
|
||||
flows walk (this method is called in the periodic flows walk)
|
||||
|
||||
Therefore, we can check nextFlowAggregation minus one to determine whether
|
||||
a cleanup of the aggregated flows hash table is going to be performed
|
||||
after this walk on the (normal, non-aggregated) flows table.
|
||||
*/
|
||||
((getIfType() == interface_type_DUMMY) || (nextFlowAggregation - 1 == 0)));
|
||||
|
||||
#ifdef AGGREGATED_FLOW_DEBUG
|
||||
char buf[256];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue