mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 17:30:11 +00:00
Decouples checks from alerts (removes unnecessary flag is_alert)
This commit is contained in:
parent
394a2cc01d
commit
4a526c3cdf
34 changed files with 22 additions and 97 deletions
|
|
@ -107,7 +107,7 @@ function dumpInterfaceStats(ifid)
|
|||
res["flow_export_count"] = ifstats.stats_since_reset.flow_export_count
|
||||
end
|
||||
|
||||
if prefs.are_alerts_enabled == true and auth.has_capability(auth.capabilities.alerts) then
|
||||
if auth.has_capability(auth.capabilities.alerts) then
|
||||
res["engaged_alerts"] = ifstats["num_alerts_engaged"] or 0
|
||||
res["dropped_alerts"] = ifstats["num_dropped_alerts"] or 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue