Removed 'duplicated' flows stats function retriever

Implements #5195
This commit is contained in:
Matteo Biscosi 2021-04-21 10:56:09 +02:00
parent 3ea8d98fb3
commit 888133ccb2
5 changed files with 13 additions and 102 deletions

View file

@ -33,13 +33,11 @@ local throughput_type = getThroughputType()
local flows_filter = getFlowsFilter()
local flows_stats
local total = 0
local filtered_traffic_stats
if not flows_to_update then
flows_stats = interface.getFlowsInfo(flows_filter["hostFilter"], flows_filter)
total = flows_stats["numFlows"]
flows_stats = flows_stats["flows"]
else
flows_stats = {}
@ -57,9 +55,6 @@ else
end
end
-- This is used to get the current bytes rcvd and sent by these specific filters
filtered_traffic_stats = interface.getFlowsTrafficStats(flows_filter["hostFilter"], flows_filter, true)
-- Prepare host
local host_list = {}
local num_host_list = 0