Implements IPv6 hierarchical filesystem paths for RRDs

Fixes #1376
This commit is contained in:
Simone Mainardi 2017-07-27 17:55:22 +02:00
parent b15139dc2b
commit 1b97ad41ee
3 changed files with 12 additions and 8 deletions

View file

@ -100,13 +100,13 @@ function navigatedir(url, label, base, path, go_deep, print_html, ifid, host, st
if(ntop.isdir(p)) then
if(go_deep) then
r = navigatedir(url, label.."/"..v, base, p, print_html, ifid, host, start_time, end_time)
r = navigatedir(url, label.."/"..v, base, p, go_deep, print_html, ifid, host, start_time, end_time)
for k,v in pairs(r) do
ret[k] = v
if(do_debug) then print(v.."<br>\n") end
end
end
else
else
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