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

@ -614,7 +614,7 @@ function host_pools_utils.hostpool2record(ifid, pool_id, pool)
record["column_chart"] = ""
if ntop.getCache("ntopng.prefs.host_pools_rrd_creation") == "1" then
if areHostPoolsTimeseriesEnabled(ifid) then
record["column_chart"] = '<A HREF="'..ntop.getHttpPrefix()..'/lua/pool_details.lua?pool='..pool_id..'&page=historical"><i class=\'fas fa-chart-area fa-lg\'></i></A>'
end