Fix flow dump alert

This commit is contained in:
Alfredo Cardigliano 2020-09-21 23:02:33 +02:00
parent d3854b69fa
commit ee253b4569
2 changed files with 11 additions and 11 deletions

View file

@ -195,13 +195,15 @@ end
--- if nIndex is not able to start/run/dump
--- @param container table The table where the notification will be inserted
function defined_alert_notifications.flow_dump(container)
if isAdministrator() and
prefs.is_dump_flows_enabled and
prefs.is_dump_flows_runtime_enabled and
not interface.isFlowDumpDisabled and
not interface.isFlowDumpRunning then
table.insert(container, create_flow_dump_alert_notification())
end
local ifstats = interface.getStats()
if isAdministrator() and
prefs.is_dump_flows_enabled and
prefs.is_dump_flows_runtime_enabled and
not ifstats.isFlowDumpDisabled and
not ifstats.isFlowDumpRunning then
table.insert(container, create_flow_dump_alert_notification())
end
end
-- ###############################################################