mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
added extraction limit (optional)
This commit is contained in:
parent
036aa69206
commit
6f029bb74c
5 changed files with 24 additions and 11 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue