mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fixed TooEarly nDPI protocol report
This commit is contained in:
parent
d81d8a3295
commit
45f0f80296
5 changed files with 31 additions and 21 deletions
|
|
@ -276,12 +276,12 @@ for _key, value in ipairs(flows_stats) do -- pairsByValues(vals, funct) do
|
|||
|
||||
local app = getApplicationLabel(value["proto.ndpi"])
|
||||
if(value["verdict.pass"] == false) then
|
||||
app = "<strike>"..app.."</strike>"
|
||||
app = "<strike>"..shortenString(app, 12).."</strike>"
|
||||
end
|
||||
|
||||
record["column_ndpi"] = app -- can't set the hosts_stats hyperlink for viewed interfaces
|
||||
if not ifstats.isViewed then
|
||||
record["column_ndpi"] = "<A HREF='".. ntop.getHttpPrefix().."/lua/hosts_stats.lua?protocol=" .. value["proto.ndpi_id"] .."'>"..shortenString(app, 12).." " .. formatBreed(value["proto.ndpi_breed"]) .."</A>"
|
||||
if((not ifstats.isViewed) and (value["proto.ndpi_id"] ~= -1)) then
|
||||
record["column_ndpi"] = "<A HREF='".. ntop.getHttpPrefix().."/lua/hosts_stats.lua?protocol=" .. value["proto.ndpi_id"] .."'>"..app.." " .. formatBreed(value["proto.ndpi_breed"]) .."</A>"
|
||||
end
|
||||
record["column_duration"] = secondsToTime(value["duration"])
|
||||
record["column_bytes"] = value["bytes"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue