Fixed some Lua errors that caused some scripts to fail and this prevent reports from being properly displayed (e.g. the ASNs report in the dashboard)

This commit is contained in:
Luca Deri 2015-08-27 00:42:41 +02:00
parent 07e214a6b2
commit 7e220133a5
3 changed files with 16 additions and 7 deletions

View file

@ -199,7 +199,8 @@ end
local function getHistoricalTopAS(ifid, ifname, epoch, add_vlan)
if (epoch == nil) then
return("[ ]\n")
end
end
return getTopASFromJSON(ntop.getMinuteSampling(ifid, tonumber(epoch)), add_vlan)
end