mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-11 19:30:07 +00:00
Implement traffic extraction on view interfaces by aggregating traffic from all viewed interfaces, if recording is enabled on those
This commit is contained in:
parent
ca0b6e1125
commit
efc6484517
9 changed files with 173 additions and 22 deletions
|
|
@ -303,10 +303,8 @@ function graph_utils.drawNewGraphs(source_value_object)
|
|||
local ifstats = interface.getStats()
|
||||
local ifid = (source_value_object.ifid) or (ifstats.id)
|
||||
|
||||
-- Check extraction permissions
|
||||
local traffic_extraction_permitted =
|
||||
recording_utils.isActive(ifid) or
|
||||
recording_utils.isExtractionActive(ifid)
|
||||
-- Check extraction permissions (handles View interfaces transparently)
|
||||
local _, traffic_extraction_permitted = recording_utils.getStats(ifid)
|
||||
|
||||
if source_value_object == nil then source_value_object = {} end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue