".. (i18n(gui_conf.i18n_title) or gui_conf.i18n_title) .. " " .. url .." ")
print("".. (i18n(gui_conf.i18n_description) or gui_conf.i18n_description) .."\n")
if(tab == "min") then
print(" | ")
if ts_utils.exists("elem_user_script:duration", {ifid=ifid, user_script=mod_k, subdir=entity_type}) then
print('')
end
end
for _, prefix in pairs({"", "global_"}) do
if user_script.gui.input_builder then
local k = prefix..key
local is_global = (prefix == "global_")
local conf
print(" | ")
if is_global then
conf = user_scripts.getGlobalConfiguration(user_script, tab, options.remote_host)
else
conf = user_scripts.getConfiguration(user_script, tab, entity_value, options.remote_host)
end
if(conf ~= nil) then
-- TODO remove after implementing the new gui
local value = ternary(user_script.gui.post_handler == user_scripts.checkbox_post_handler, conf.enabled, conf.script_conf)
print(user_script.gui.input_builder(user_script.gui or {}, k, value))
end
end
end
print(" | \n")
local script_benchmark = benchmarks[mod_k]
if script_benchmark and (script_benchmark[tab] or script_benchmark["all"]) then
local hook = ternary(script_benchmark[tab], tab, "all")
if script_benchmark[hook]["tot_elapsed"] then
if script_benchmark[hook]["tot_num_calls"] > 1 then
print(i18n("flow_callbacks.callback_function_duration_fmt_long",
{num_calls = format_utils.formatValue(script_benchmark[hook]["tot_num_calls"]),
time = format_utils.secondsToTime(script_benchmark[hook]["tot_elapsed"]),
speed = format_utils.formatValue(round(script_benchmark[hook]["avg_speed"], 0))}))
else
print(i18n("flow_callbacks.callback_function_duration_fmt_short",
{time = format_utils.secondsToTime(script_benchmark[hook]["tot_elapsed"])}))
end
end
end
print(" |
\n")
::next_module::
end
end
print [[