mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 09:20:10 +00:00
Deterministic selection of flow risk
This commit is contained in:
parent
7e1a3ef51f
commit
f245caf83c
2 changed files with 2 additions and 2 deletions
|
|
@ -154,7 +154,7 @@ function script.hooks.protocolDetected(now, conf)
|
|||
-- Iterate all the currently detected flow risks
|
||||
local all_risks = flow.getRiskInfo()
|
||||
|
||||
for risk_str, risk_id in pairs(all_risks) do
|
||||
for risk_str, risk_id in pairsByValues(all_risks, asc) do
|
||||
-- If the risk is not among those enabled, just skip it
|
||||
if not enabled_risks[risk_id] then
|
||||
goto continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue