mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Reworks top-talkers to greatly improve speed
This commit is contained in:
parent
a51706ca98
commit
4a9c17c8dd
4 changed files with 226 additions and 35 deletions
|
|
@ -6,6 +6,7 @@ require "alert_utils"
|
|||
require "graph_utils"
|
||||
local rrd_utils = require "rrd_utils"
|
||||
local os_utils = require "os_utils"
|
||||
local top_talkers_utils = require "top_talkers_utils"
|
||||
|
||||
local rrd_dump = {}
|
||||
|
||||
|
|
@ -76,9 +77,11 @@ end
|
|||
|
||||
-- ########################################################
|
||||
|
||||
local function dumpTopTalkers(_ifname, ifstats, verbose)
|
||||
function dumpTopTalkers(_ifname, ifstats, verbose)
|
||||
-- Dump topTalkers every minute
|
||||
local talkers = makeTopJSON(ifstats.id, _ifname)
|
||||
-- local talkers = makeTopJSON(ifstats.id, _ifname) -- TODO: trash this method and all its calls
|
||||
|
||||
local talkers = top_talkers_utils.makeTopJson(_ifname)
|
||||
|
||||
if(verbose) then
|
||||
print("Computed talkers for interfaceId "..ifstats.id.."/"..ifstats.name.."\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue