Integrate elephant flows new gui

This commit is contained in:
emanuele-f 2020-01-21 19:38:37 +01:00
parent 1acec3ea88
commit 4a4106a796
5 changed files with 75 additions and 59 deletions

View file

@ -261,7 +261,7 @@ function printAlerts()
"row_toggle_remote_to_remote_alerts",
"row_toggle_ip_reassignment_alerts", "row_alerts_informative_header",
"row_toggle_device_first_seen_alert", "row_toggle_device_activation_alert", "row_toggle_pool_activation_alert", "row_toggle_quota_exceeded_alert",
"longlived_flow_duration", "elephant_flow_local_to_remote_bytes", "elephant_flow_remote_to_local_bytes"
"longlived_flow_duration",
}
if not subpage_active.entries["toggle_mysql_check_open_files_limit"].hidden then
@ -312,16 +312,6 @@ function printAlerts()
"ntopng.prefs.", "longlived_flow_duration", 12 * 60 * 60 --[[ 12 hours --]],
"number", showElements, nil, nil, {min=1, max=60*60*24*7, tformat="mhd"})
prefsInputFieldPrefs(subpage_active.entries["elephant_flow_local_to_remote_bytes"].title,
subpage_active.entries["elephant_flow_local_to_remote_bytes"].description,
"ntopng.prefs.", "elephant_flow_local_to_remote_bytes", 1024 * 1024 * 1024 --[[ 1 GB --]],
"number", showElements, nil, nil, {min=1024, format_spec = FMT_TO_DATA_BYTES, tformat="kmg"})
prefsInputFieldPrefs(subpage_active.entries["elephant_flow_remote_to_local_bytes"].title,
subpage_active.entries["elephant_flow_remote_to_local_bytes"].description,
"ntopng.prefs.", "elephant_flow_remote_to_local_bytes", 1024 * 1024 * 1024 --[[ 1 GB --]],
"number", showElements, nil, nil, {min=1024, format_spec = FMT_TO_DATA_BYTES, tformat="kmg"})
print('<thead class="thead-light"><tr id="row_alerts_informative_header" ')
if (showElements == false) then print(' style="display:none;"') end
print('><th colspan=2 class="info">'..i18n("prefs.status_alerts")..'</th></tr></thead>')