mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fixes slow periodic activities failing in case of empty string
This commit is contained in:
parent
952fa6e995
commit
64b603d855
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ local script = {
|
|||
local function check_slow_periodic_activity(params)
|
||||
local scripts_stats = interface.getPeriodicActivitiesStats()
|
||||
|
||||
for ps_name, ps_stats in pairs(scripts_stats) do
|
||||
for ps_name, ps_stats in pairs(scripts_stats or {}) do
|
||||
local delta = alerts_api.interface_delta_val(script.key .. ps_name --[[ metric name --]], params.granularity, ps_stats["num_is_slow"] or 0)
|
||||
|
||||
local alert = alert_consts.alert_types.alert_slow_periodic_activity.new(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue