mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Handles custom n2disk instances within ntopng
This commit is contained in:
parent
9881358bf8
commit
11f4b2fe67
11 changed files with 300 additions and 136 deletions
|
|
@ -141,11 +141,8 @@ function dumpInterfaceStats(interface_name)
|
|||
end
|
||||
end
|
||||
|
||||
local is_manual_recording_active = recording_utils.isManualServiceActive(ifstats.id)
|
||||
if recording_utils.isAvailable() or is_manual_recording_active then
|
||||
if is_manual_recording_active then
|
||||
res["traffic_recording"] = "recording"
|
||||
elseif recording_utils.isEnabled(ifstats.id) then
|
||||
if recording_utils.isAvailable() then
|
||||
if recording_utils.isEnabled(ifstats.id) then
|
||||
if recording_utils.isActive(ifstats.id) then
|
||||
res["traffic_recording"] = "recording"
|
||||
else
|
||||
|
|
@ -153,7 +150,7 @@ function dumpInterfaceStats(interface_name)
|
|||
end
|
||||
end
|
||||
|
||||
if recording_utils.isEnabled(ifstats.id) or is_manual_recording_active then
|
||||
if recording_utils.isEnabled(ifstats.id) then
|
||||
local jobs_info = recording_utils.extractionJobsInfo(ifstats.id)
|
||||
if jobs_info.ready > 0 then
|
||||
res["traffic_extraction"] = "ready"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue