mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Do not trigger no_if_activity for pcap or db dump anlysis
This commit is contained in:
parent
7724d22990
commit
60c6d0c9a7
1 changed files with 5 additions and 0 deletions
|
|
@ -24,6 +24,11 @@ local script = {
|
|||
-- #################################################################
|
||||
|
||||
local function check_interface_activity(params)
|
||||
|
||||
if interface.isPcapDumpInterface() or interface.isDatabaseViewInterface() then
|
||||
return -- Not a live interface, skip this check
|
||||
end
|
||||
|
||||
-- Get total number of packets, flows and interface id
|
||||
local num_packets = params.entity_info.eth.packets
|
||||
local num_flows = params.entity_info.stats.new_flows -- .new_flows keep the cumulative total, .flows is just a gauge
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue