timeseries dump changes for introducing custom callback

This commit is contained in:
Luca Deri 2022-09-28 23:48:38 +02:00
parent e555e67ae8
commit 6f2096d1cc
4 changed files with 62 additions and 13 deletions

View file

@ -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