Allows top talkers generation to be enabled/disabled

This commit is contained in:
Simone Mainardi 2019-09-11 16:42:26 +02:00
parent 1a98a04cdf
commit f151fba989
14 changed files with 101 additions and 19 deletions

View file

@ -7,6 +7,7 @@ require "historical_utils"
require "rrd_paths"
local dkjson = require("dkjson")
local host_pools_utils = require "host_pools_utils"
local top_talkers_utils = require "top_talkers_utils"
local os_utils = require "os_utils"
local have_nedge = ntop.isnEdge()
@ -973,7 +974,10 @@ if(stats ~= nil) then
end
print(' <tr><th>Selection Time</th><td colspan=2><div id=when></div></td></tr>\n')
print(' <tr><th>Minute<br>Interface<br>Top Talkers</th><td colspan=2><div id=talkers></div></td></tr>\n')
if top_talkers_utils.areTopEnabled(ifid) then
print(' <tr><th>Minute<br>Interface<br>Top Talkers</th><td colspan=2><div id=talkers></div></td></tr>\n')
end
print [[