mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Improve slow activity message
This commit is contained in:
parent
8e9ea63e8b
commit
bd803e9ce2
2 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ local function check_slow_periodic_activity(params)
|
|||
for ps_name, ps_stats in pairs(scripts_stats) do
|
||||
local delta = alerts_api.interface_delta_val(script.key..ps_name --[[ metric name --]], params.granularity, ps_stats["num_is_slow"] or 0)
|
||||
|
||||
local info = alert_info(ps_name, (ps_stats["periodicity"] or 0) * 1000)
|
||||
local info = alert_info(ps_name, (ps_stats["periodicity"] - ps_stats["deadline_secs"]) * 1000)
|
||||
|
||||
if delta > 0 then
|
||||
-- tprint({ps_name = ps_name, s = ">>>>>>>>>>>>>>>>>>>>>> TRIGGER"})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue