mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Renames alert_config to user_script_config
This commit is contained in:
parent
61ab06fcd7
commit
3144bc8bdf
12 changed files with 16 additions and 16 deletions
|
|
@ -12,7 +12,7 @@ local script
|
|||
local function check_interface_drops(params)
|
||||
local info = params.entity_info
|
||||
local stats = info.stats_since_reset
|
||||
local threshold = tonumber(params.alert_config.threshold)
|
||||
local threshold = tonumber(params.user_script_config.threshold)
|
||||
local drop_perc = math.min(stats.drops * 100.0 / (stats.drops + stats.packets + 1), 100)
|
||||
local drops_type = alerts_api.tooManyDropsType(stats.drops, drop_perc, threshold)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue