mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-02 00:40:10 +00:00
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:
parent
5b70db90ad
commit
d1140ec9fd
42 changed files with 201 additions and 149 deletions
|
|
@ -13,7 +13,6 @@ end
|
|||
require "lua_utils"
|
||||
require "graph_utils"
|
||||
local page_utils = require("page_utils")
|
||||
local ts_utils = require"ts_utils"
|
||||
|
||||
local info = ntop.getInfo(false)
|
||||
local vlan_id = _GET["vlan"]
|
||||
|
|
@ -33,7 +32,7 @@ if vlan_id == nil or tonumber(vlan_id) == nil or tonumber(vlan_id) == 0 then
|
|||
return
|
||||
end
|
||||
|
||||
if(not ts_utils.exists("vlan:traffic", {ifid=ifId, vlan=vlan_id})) then
|
||||
if(not areVlanTimeseriesEnabled(ifId)) then
|
||||
print("<div class=\"alert alert alert-danger\"><img src=".. ntop.getHttpPrefix() .. "/img/warning.png> " .. i18n("vlan_details.no_available_stats_for_vlan_message",{vlan_id=vlan_id, product=info["product"]}).."</div>")
|
||||
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue