mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
parent
fe67dc9e4f
commit
c95032d655
1 changed files with 8 additions and 4 deletions
|
|
@ -742,9 +742,11 @@ function printStatsTimeseries()
|
|||
field = "toggle_interface_traffic_rrd_creation",
|
||||
default = "1",
|
||||
pref = "interface_rrd_creation",
|
||||
to_switch = elementToSwitch,
|
||||
to_switch = {"row_interfaces_ndpi_timeseries_creation"},
|
||||
})
|
||||
|
||||
local showElement = ntop.getPref("ntopng.prefs.interface_rrd_creation") == "1"
|
||||
|
||||
retVal = multipleTableButtonPrefs(subpage_active.entries["toggle_ndpi_timeseries_creation"].title,
|
||||
subpage_active.entries["toggle_ndpi_timeseries_creation"].description,
|
||||
l7_rrd_labels, l7_rrd_values,
|
||||
|
|
@ -752,7 +754,7 @@ function printStatsTimeseries()
|
|||
"primary",
|
||||
"interfaces_ndpi_timeseries_creation",
|
||||
"ntopng.prefs.interface_ndpi_timeseries_creation", nil,
|
||||
elementToSwitch, showElementArray, javascriptAfterSwitch)
|
||||
elementToSwitch, showElementArray, javascriptAfterSwitch, showElement)
|
||||
|
||||
|
||||
print('<tr><th colspan=2 class="info">'..i18n('prefs.local_hosts_timeseries')..'</th></tr>')
|
||||
|
|
@ -768,9 +770,11 @@ function printStatsTimeseries()
|
|||
field = "toggle_local_hosts_traffic_rrd_creation",
|
||||
default = "1",
|
||||
pref = "host_rrd_creation",
|
||||
to_switch = elementToSwitch,
|
||||
to_switch = {"row_hosts_ndpi_timeseries_creation"},
|
||||
})
|
||||
|
||||
local showElement = ntop.getPref("ntopng.prefs.host_rrd_creation") == "1"
|
||||
|
||||
retVal = multipleTableButtonPrefs(subpage_active.entries["toggle_ndpi_timeseries_creation"].title,
|
||||
subpage_active.entries["toggle_ndpi_timeseries_creation"].description,
|
||||
l7_rrd_labels, l7_rrd_values,
|
||||
|
|
@ -778,7 +782,7 @@ function printStatsTimeseries()
|
|||
"primary",
|
||||
"hosts_ndpi_timeseries_creation",
|
||||
"ntopng.prefs.host_ndpi_timeseries_creation", nil,
|
||||
elementToSwitch, showElementArray, javascriptAfterSwitch)
|
||||
elementToSwitch, showElementArray, javascriptAfterSwitch, showElement)
|
||||
|
||||
print('<tr><th colspan=2 class="info">'..i18n('prefs.other_timeseries')..'</th></tr>')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue