Unifies all internals timeseries in a single preference

Implements #3459
This commit is contained in:
Simone Mainardi 2020-02-28 15:00:14 +01:00
parent 717b2f88ce
commit ec724babcf
8 changed files with 30 additions and 25 deletions

View file

@ -51,9 +51,9 @@ end
function ts_dump.run_5sec_dump(ifid, when, periodic_ht_state_update_stats)
local iface_rrd_creation_enabled = (ntop.getPref("ntopng.prefs.ifid_"..ifid..".interface_rrd_creation") ~= "false")
and (ntop.getPref("ntopng.prefs.interface_rrd_creation") ~= "0")
local user_scripts_rrd_creation_enabled = ntop.getPref("ntopng.prefs.user_scripts_rrd_creation") == "1"
local internals_rrd_creation_enabled = ntop.getPref("ntopng.prefs.internals_rrd_creation") == "1"
if not iface_rrd_creation_enabled or not user_scripts_rrd_creation_enabled then
if not iface_rrd_creation_enabled or not internals_rrd_creation_enabled then
return
end