mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
timeseries dump changes for introducing custom callback
This commit is contained in:
parent
e555e67ae8
commit
6f2096d1cc
4 changed files with 62 additions and 13 deletions
|
|
@ -75,7 +75,7 @@ local function parse_lists_from_dir(where)
|
|||
if(j.category == nil) then
|
||||
traceError(TRACE_WARNING, TRACE_CONSOLE, "Skipping invalid list "..path ..": no category")
|
||||
skip = true
|
||||
elseif(j.category == "mining") then j.category = CUSTOM_CATEGORY_MINING
|
||||
elseif(j.category == "mining") then j.category = CUSTOM_CATEGORY_MINING
|
||||
elseif(j.category == "malware") then j.category = CUSTOM_CATEGORY_MALWARE
|
||||
elseif(j.category == "advertisement") then j.category = CUSTOM_CATEGORY_ADVERTISEMENT
|
||||
else
|
||||
|
|
@ -609,9 +609,7 @@ local function loadFromListFile(list_name, list, user_custom_categories, stats)
|
|||
|
||||
return(false)
|
||||
end
|
||||
|
||||
else
|
||||
|
||||
local f = io.open(list_fname, "r")
|
||||
local num_line = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue