mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Fix wrong engaged alerts number when a filter is applied
This commit is contained in:
parent
6f52961c84
commit
444916fa14
2 changed files with 17 additions and 10 deletions
|
|
@ -66,12 +66,7 @@ if alert_options.entity_val ~= nil then
|
|||
alert_options.entity_val = string.gsub(alert_options.entity_val, "https:__", "https://")
|
||||
end
|
||||
|
||||
local num_alerts = tonumber(_GET["totalRows"])
|
||||
if num_alerts == nil then
|
||||
num_alerts = getNumAlerts(status, alert_options)
|
||||
end
|
||||
|
||||
local alerts = getAlerts(status, alert_options)
|
||||
local alerts, num_alerts = getAlerts(status, alert_options, true --[[ with_counters ]])
|
||||
|
||||
if alerts == nil then alerts = {} end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue