Avoid timeseries read operations to display the chart icon

Now the icon is displayed whenever the timeseries are enabled for the given context
This commit is contained in:
emanuele-f 2020-02-19 13:26:05 +01:00
parent 5b70db90ad
commit d1140ec9fd
42 changed files with 201 additions and 149 deletions

View file

@ -653,13 +653,7 @@ end
-- ##############################################
function plugins_utils.timeseriesCreationEnabled()
local system_probes_timeseries_enabled = true
if ntop.getPref("ntopng.prefs.system_probes_timeseries") == "0" then
system_probes_timeseries_enabled = false
end
return system_probes_timeseries_enabled
return areSystemTimeseriesEnabled()
end
-- ##############################################