mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Set ntopng.prefs.beta_score redis key to enable score supprot (beta)
This commit is contained in:
parent
8637573838
commit
3fcded57fa
5 changed files with 21 additions and 10 deletions
|
|
@ -15,6 +15,7 @@ local have_nedge = ntop.isnEdge()
|
|||
sendHTTPContentTypeHeader('text/html')
|
||||
local debug = false
|
||||
local debug_process = false -- Show flow processed information
|
||||
local debug_score = (ntop.getPref("ntopng.prefs.beta_score") == "1")
|
||||
|
||||
interface.select(ifname)
|
||||
local ifstats = interface.getStats()
|
||||
|
|
@ -486,8 +487,10 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
|
||||
local info = value["info"]
|
||||
|
||||
if(value["score"] > 0) then
|
||||
info = info .. string.format(" [<b>score: %u</b>]", value["score"])
|
||||
if debug_score then
|
||||
if(value["score"] > 0) then
|
||||
info = info .. string.format(" [<b>score: %u</b>]", value["score"])
|
||||
end
|
||||
end
|
||||
|
||||
record["column_info"] = info
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue