Removes redundant calls in alerts

This commit is contained in:
Simone Mainardi 2016-07-26 20:06:45 +02:00
parent 590bc16018
commit 106ba35d2c

View file

@ -391,10 +391,6 @@ function check_interface_threshold(ifname, mode)
ntop.mkdir(basedir)
end
--if(verbose) then print(basedir.."<br>\n") end
interface.select(ifname)
ifstats = aggregateInterfaceStats(interface.getStats())
if (ifstats ~= nil) then
fname = fixPath(basedir.."/iface_"..ifname_id.."_lastdump")
@ -501,11 +497,5 @@ function scanAlerts(granularity, ifname)
check_host_threshold(ifname, h, granularity)
end
end
-- network alerts checks
if(networks ~= nil) then
for n in pairs(networks) do
if(verbose) then print("[minute.lua] Checking network " .. h.." alerts<p>\n") end
end
end
end