mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
parent
3ea8d98fb3
commit
888133ccb2
5 changed files with 13 additions and 102 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue