mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
allow to enable new timeseries page on interface enabling: 'redis-cli SET ntopng.enable_new_timeseries 1'
This commit is contained in:
parent
9b9ab1014a
commit
ec4d8e7d22
2 changed files with 8 additions and 6 deletions
|
|
@ -339,11 +339,13 @@ function graph_utils.drawGraphs(ifid, schema, tags, zoomLevel, baseurl, selected
|
|||
if(zoomLevel == nil) then zoomLevel = min_zoom end
|
||||
|
||||
if graph_utils.drawProGraph then
|
||||
--[[if render_new_chart and render_new_chart == true then
|
||||
local template_utils = require "template_utils"
|
||||
template_utils.render("pages/components/historical_interface.template", {})
|
||||
return
|
||||
end]]
|
||||
local enable_new_timeseries = ntop.getPref("ntopng.enable_new_timeseries")
|
||||
tprint(enable_new_timeseries)
|
||||
if render_new_chart and render_new_chart == true and enable_new_timeseries == "1" then
|
||||
local template_utils = require "template_utils"
|
||||
template_utils.render("pages/components/historical_interface.template", {})
|
||||
return
|
||||
end
|
||||
|
||||
graph_utils.drawProGraph(ifid, schema, tags, zoomLevel, baseurl, options, show_graph)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue