Fix for saving/reading local hosts activities

This commit is contained in:
Luca Deri 2015-08-09 11:49:01 +02:00
parent 39fe9433c2
commit 792ccd15ac
4 changed files with 26 additions and 20 deletions

View file

@ -1688,6 +1688,7 @@ end
-- rrd_exists
function rrd_exists(host_ip, rrdname)
if(host_ip == nil) then return false end
dirs = ntop.getDirs()
rrdpath = dirs.workingdir .. "/" .. ifId .. "/rrd/" .. getPathFromKey(host_ip) .. "/" .. rrdname
return ntop.exists(rrdpath)