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

@ -405,7 +405,7 @@ function internals_utils.printInternals(ifid, print_hash_tables, print_periodic_
elseif print_user_scripts then tab = "user_scripts" end
end
local ts_creation = ntop.getPref("ntopng.prefs.ifid_"..(ifid or getSystemInterfaceId())..".interface_rrd_creation") ~= "false"
local ts_creation = areInternalTimeseriesEnabled(ifid or getSystemInterfaceId())
print[[<ul class="nav nav-tabs" role="tablist">]]