Rework top-talkers to improve performance and clean code

This commit is contained in:
emanuele-f 2017-11-28 18:00:30 +01:00
parent 4a9c17c8dd
commit 6635d1a716
24 changed files with 124 additions and 2177 deletions

View file

@ -1,7 +1,6 @@
-- ########################################################
require "lua_utils"
require "top_structure"
require "alert_utils"
require "graph_utils"
local rrd_utils = require "rrd_utils"
@ -79,8 +78,6 @@ end
function dumpTopTalkers(_ifname, ifstats, verbose)
-- Dump topTalkers every minute
-- local talkers = makeTopJSON(ifstats.id, _ifname) -- TODO: trash this method and all its calls
local talkers = top_talkers_utils.makeTopJson(_ifname)
if(verbose) then