mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Skips 1m selection button for some RRDs
1m selection button is disabled for graphs showing RRDs sampled every 5 minutes (e.g., nDPI application RRDs)
This commit is contained in:
parent
7930930360
commit
b8a0d6ac14
1 changed files with 7 additions and 0 deletions
|
|
@ -449,6 +449,12 @@ end -- show_timeseries == 1
|
|||
print(' Timeframe: <div class="btn-group" data-toggle="buttons" id="graph_zoom">\n')
|
||||
|
||||
for k,v in ipairs(zoom_vals) do
|
||||
-- display 1 minute button only for networks and interface stats
|
||||
-- but exclude applications. Application statistics are gathered
|
||||
-- every 5 minutes
|
||||
if zoom_vals[k][1] == '1m' and ((host and not string.starts(host, 'net:')) or not top_rrds[rrdFile]) then
|
||||
goto continue
|
||||
end
|
||||
print('<label class="btn btn-link ')
|
||||
|
||||
if(zoom_vals[k][1] == zoomLevel) then
|
||||
|
|
@ -456,6 +462,7 @@ for k,v in ipairs(zoom_vals) do
|
|||
end
|
||||
print('">')
|
||||
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')
|
||||
::continue::
|
||||
end
|
||||
|
||||
print [[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue