mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Added fix for centering graphs when clicking on timeframe buttons
This commit is contained in:
parent
74a255ec9d
commit
9efc511950
1 changed files with 3 additions and 3 deletions
|
|
@ -440,7 +440,7 @@ for k,v in ipairs(zoom_vals) do
|
|||
print("active")
|
||||
end
|
||||
print('">')
|
||||
print('<input type="radio" name="options" id="zoom_level_'..k..'" value="'..baseurl .. '&rrd_file=' .. rrdFile .. '&graph_zoom=' .. zoom_vals[k][1] .. '&epoch=' .. (selectedEpoch or '') ..'">'.. zoom_vals[k][1] ..'</input></label>\n')
|
||||
print('<input type="radio" name="options" id="zoom_level_'..k..'" value="'..baseurl .. '&rrd_file=' .. rrdFile .. '&graph_zoom=' .. zoom_vals[k][1] .. '">'.. zoom_vals[k][1] ..'</input></label>\n')
|
||||
end
|
||||
|
||||
print [[
|
||||
|
|
@ -925,9 +925,9 @@ function printGraphTopFlows(ifId, host, epoch, zoomLevel, l7proto)
|
|||
|
||||
if((epoch == nil) or (epoch == "")) then epoch = os.time() end
|
||||
|
||||
local d = getZoomDuration(zoomLevel)/2
|
||||
local d = getZoomDuration(zoomLevel)
|
||||
|
||||
epoch_end = epoch+d
|
||||
epoch_end = epoch
|
||||
epoch_begin = epoch-d
|
||||
|
||||
printTopFlows(ifId, host, epoch_begin, epoch_end, l7proto, '', '', '', 5, 5)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue