mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Implements old RRD files deletion (frontend + partial backend)
This commit is contained in:
parent
5ebfb6f01c
commit
a99c7a9544
11 changed files with 117 additions and 6 deletions
|
|
@ -808,7 +808,7 @@ function printStatsTimeseries()
|
|||
field = "toggle_l2_devices_traffic_rrd_creation",
|
||||
default = "0",
|
||||
pref = "l2_device_rrd_creation",
|
||||
to_switch = {"row_l2_devices_ndpi_timeseries_creation"},
|
||||
to_switch = {"row_l2_devices_ndpi_timeseries_creation", "rrd_files_retention"},
|
||||
})
|
||||
|
||||
local l7_rrd_labels = {i18n("prefs.none"),
|
||||
|
|
@ -827,6 +827,9 @@ function printStatsTimeseries()
|
|||
"ntopng.prefs.l2_device_ndpi_timeseries_creation", nil,
|
||||
elementToSwitch, showElementArray, javascriptAfterSwitch, showElement)
|
||||
|
||||
prefsInputFieldPrefs(subpage_active.entries["rrd_files_retention"].title, subpage_active.entries["rrd_files_retention"].description,
|
||||
"ntopng.prefs.", "rrd_files_retention", 30, "number", nil, nil, nil, {min=1, max=365, --[[ TODO check min/max ]]})
|
||||
|
||||
print('<tr><th colspan=2 class="info">'..i18n('prefs.other_timeseries')..'</th></tr>')
|
||||
|
||||
local info = ntop.getInfo()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue