added extraction limit (optional)

This commit is contained in:
Alfredo Cardigliano 2018-11-16 10:05:59 +01:00
parent 036aa69206
commit 6f029bb74c
5 changed files with 24 additions and 11 deletions

View file

@ -794,7 +794,12 @@ function recording_utils.checkExtractionJobs()
if not isEmptyString(job_json) then
local job = json.decode(job_json)
ntop.runExtraction(job.id, tonumber(job.ifid), tonumber(job.time_from), tonumber(job.time_to), job.filter)
ntop.runExtraction(job.id,
tonumber(job.ifid),
tonumber(job.time_from),
tonumber(job.time_to),
job.filter,
0) -- extraction limit (bytes)
job.status = 'processing'
ntop.setHashCache(extraction_jobs_key, job.id, json.encode(job))