mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fixes duration for engaged alerts always set to <1 second
This commit is contained in:
parent
95d27351af
commit
6fa3a2cc27
3 changed files with 4 additions and 4 deletions
|
|
@ -59,9 +59,9 @@ function alert_threshold_cross.format(ifid, alert, alert_type_params)
|
|||
metric = alert_type_params.metric,
|
||||
entity = entity,
|
||||
host_category = format_utils.formatAddressCategory((json.decode(alert.json)).alert_generation.host_info),
|
||||
value = string.format("%u", math.ceil(alert_type_params.value)),
|
||||
value = format_utils.formatValue(alert_type_params.value),
|
||||
op = "&".. (alert_type_params.operator or "gt") ..";",
|
||||
threshold = alert_type_params.threshold,
|
||||
threshold = format_utils.formatValue(alert_type_params.threshold),
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue