Fixed maximum hosts/flows wizard

This commit is contained in:
MatteoBiscosi 2020-12-10 12:43:46 +01:00
parent d13997e120
commit fdc2ff603d
4 changed files with 11 additions and 10 deletions

View file

@ -494,6 +494,8 @@ local lang = {
["too_many_drops"] = "%{iface} has too many dropped packets [&gt %{max_drops}%%]",
["too_many_flows"] = "%{iface} has too many flows. Please extend the %{option} command line option.",
["too_many_flows_title"] = "Double Max Flows",
["too_many_flows_details"] = "Do you want to double the actual number of maximum Flows?"
["too_many_hosts_details"] = "Do you want to double the actual number of maximum Hosts?"
["too_many_hosts"] = "%{iface} has too many hosts. Please extend the %{option} command line option.",
["too_many_hosts_title"] = "Double Max Hosts",
["x_alerts"] = "%{num} alerts",

View file

@ -9,7 +9,7 @@ local rest_utils = require("rest_utils")
local conf_utils = {}
local redis_key = "increased_max_num_host_or_flows"
local dir = "/bin/ntopng/ntopng-config"
local dir = "/usr/bin/ntopng-config"
-- ################################################################

View file

@ -142,10 +142,10 @@ local function create_too_many_flows_toast(toast, level)
dialog = {
id = 'toast-config-change-modal',
action = 'toastConfigFlowChanges()',
title = i18n("restart.restart_product", {product=info.product}),
message = i18n("restart.confirm", {product=info.product}),
title = i18n("too_many_flows"),
message = i18n("too_many_flows_details"),
custom_alert_class = 'alert alert-danger',
confirm = i18n('restart.restart'),
confirm = i18n('too_many_flows'),
confirm_button = 'btn-danger'
}
}
@ -169,10 +169,10 @@ local function create_too_many_hosts_toast(toast, level)
dialog = {
id = 'toast-config-change-modal',
action = 'toastConfigHostChanges()',
title = i18n("restart.restart_product", {product=info.product}),
message = i18n("restart.confirm", {product=info.product}),
title = i18n("too_many_hosts"),
message = i18n("too_many_hosts_details"),
custom_alert_class = 'alert alert-danger',
confirm = i18n('restart.restart'),
confirm = i18n('too_many_hosts'),
confirm_button = 'btn-danger'
}
}