mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Do not open RRD files for unselected menu entries
This commit is contained in:
parent
2bb851c8f5
commit
b4b1e7109a
1 changed files with 3 additions and 2 deletions
|
|
@ -100,9 +100,10 @@ function navigatedir(url, label, base, path, go_deep, print_html, ifid, host, st
|
|||
end
|
||||
end
|
||||
else
|
||||
rrd = singlerrd2json(ifid, host, v, start_time, end_time, true, false)
|
||||
local last_update,_ = ntop.rrd_lastupdate(getRRDName(ifid, host, k))
|
||||
if last_update ~= nil and last_update >= start_time then
|
||||
-- only show if there has been an update within the specified time frame
|
||||
|
||||
if((rrd.totalval ~= nil) and (rrd.totalval > 0)) then
|
||||
if(top_rrds[v] == nil) then
|
||||
if(label == "*") then
|
||||
to_skip = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue