mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixes flows flood alert detection
Detection conditions were not properly evaluated, especially upon threshold changes. This commit fixes the issue. It also adds the new stateful alerts on the flows flood. However, those alerts are still kept hidden from the main interface.
This commit is contained in:
parent
88a4b7f9e0
commit
667a63076f
7 changed files with 56 additions and 35 deletions
|
|
@ -47,6 +47,7 @@ print ("{ \"currentPage\" : " .. currentPage .. ",\n \"data\" : [\n")
|
|||
total = 0
|
||||
|
||||
if alerts == nil then alerts = {} end
|
||||
|
||||
for _key,_value in ipairs(alerts) do
|
||||
if(total > 0) then print(",\n") end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue