Score visualization improvements

This commit is contained in:
emanuele-f 2020-01-15 15:27:45 +01:00
parent 3783f0c7a5
commit 6edecb12cb
15 changed files with 41 additions and 30 deletions

View file

@ -11,8 +11,6 @@ local format_utils = require "format_utils"
local json = require "dkjson"
local have_nedge = ntop.isnEdge()
local debug_score = (ntop.getPref("ntopng.prefs.beta_score") == "1")
sendHTTPContentTypeHeader('text/html')
-- Table parameters
@ -299,12 +297,6 @@ for _key, _value in pairsByKeys(vals, funct) do
column_name = column_name .. " <i class='fas fa-ban' title='"..i18n("hosts_stats.blocking_traffic_policy_popup_msg").."'></i>"
end
if debug_score then
if(value["score"] > 0) then
column_name = column_name .. string.format(" [<b>score: %u</b>]", value["score"])
end
end
record["column_name"] = column_name
if value["vlan"] > 0 then