mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
ability to stop extractions while processing, time cap for pcap (1m by default)
This commit is contained in:
parent
9f8a70e279
commit
507fa3e972
8 changed files with 95 additions and 12 deletions
|
|
@ -85,8 +85,15 @@ for id, _ in pairsByValues(sorter, sOrder) do
|
|||
|
||||
local job = jobs[id]
|
||||
|
||||
local action_links = "<a onclick='deleteJob("..job.id..")' style='cursor: pointer'><span class=\"label label-danger\">"..i18n("delete").."</span></a>"
|
||||
if job.status == "completed" then
|
||||
local action_links = ""
|
||||
|
||||
if job.status == "processing" then
|
||||
action_links = action_links.."<a onclick='stopJob("..job.id..")' style='cursor: pointer'><span class=\"label label-danger\">"..i18n("stop").."</span></a>"
|
||||
else
|
||||
action_links = action_links.."<a onclick='deleteJob("..job.id..")' style='cursor: pointer'><span class=\"label label-danger\">"..i18n("delete").."</span></a>"
|
||||
end
|
||||
|
||||
if job.status == "completed" or job.status == "stopped" then
|
||||
local job_files = recording_utils.getJobFiles(job.id)
|
||||
if #job_files > 1 then
|
||||
local links = "<ul>"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue