mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 16:30:10 +00:00
Minor fixes
This commit is contained in:
parent
b12fc91a6b
commit
0748866745
8 changed files with 9 additions and 11 deletions
|
|
@ -52,7 +52,6 @@ end
|
|||
function host_alert_dns_traffic.format(ifid, alert, alert_type_params)
|
||||
local alert_consts = require("alert_consts")
|
||||
local entity = alert_consts.formatAlertEntity(ifid, alert_consts.alertEntityRaw(alert["alert_entity"]), alert["alert_entity_val"])
|
||||
local engine_label = alert_consts.alertEngineLabel(alert_consts.alertEngine(alert_consts.sec2granularity(alert["alert_granularity"])))
|
||||
|
||||
return i18n("alert_messages.host_alert_dns_traffic", {
|
||||
entity = entity,
|
||||
|
|
|
|||
|
|
@ -52,7 +52,6 @@ end
|
|||
function host_alert_p2p_traffic.format(ifid, alert, alert_type_params)
|
||||
local alert_consts = require("alert_consts")
|
||||
local entity = alert_consts.formatAlertEntity(ifid, alert_consts.alertEntityRaw(alert["alert_entity"]), alert["alert_entity_val"])
|
||||
local engine_label = alert_consts.alertEngineLabel(alert_consts.alertEngine(alert_consts.sec2granularity(alert["alert_granularity"])))
|
||||
|
||||
return i18n("alert_messages.host_alert_p2p_traffic", {
|
||||
entity = entity,
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ function host_alert_replies_requests_ratio.format(ifid, alert, alert_type_params
|
|||
local alert_consts = require("alert_consts")
|
||||
|
||||
local entity = firstToUpper(alert_consts.formatAlertEntity(ifid, alert_consts.alertEntityRaw(alert["alert_entity"]), alert["alert_entity_val"]))
|
||||
local engine_label = alert_consts.alertEngineLabel(alert_consts.alertEngine(alert_consts.sec2granularity(alert["alert_granularity"])))
|
||||
local ratio
|
||||
|
||||
if((alert_type_params.replies ~= nil) and (alert_type_params.requests ~= nil)) then
|
||||
|
|
@ -77,7 +76,6 @@ function host_alert_replies_requests_ratio.format(ifid, alert, alert_type_params
|
|||
return(i18n(subtype_info[1], {
|
||||
entity = entity,
|
||||
host_category = format_utils.formatAddressCategory((json.decode(alert.alert_json)).alert_generation.host_info),
|
||||
granularity = engine_label,
|
||||
ratio = ratio,
|
||||
requests = i18n(
|
||||
ternary(alert_type_params.requests == 1, "alerts_dashboard.one_request", "alerts_dashboard.many_requests"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue