mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 19:15:03 +00:00
[VS] Fix notification sending at the end of periodic scan or scan all. (#7937)
This commit is contained in:
parent
9facf5bb79
commit
181f8a8178
3 changed files with 286 additions and 36 deletions
|
|
@ -14,5 +14,17 @@ local vs_utils = require "vs_utils"
|
|||
|
||||
local use_coroutines = true
|
||||
local max_num_scans_for_loop = 64 -- avoid lasting too long (too many loops)
|
||||
local num_scans = vs_utils.process_all_scheduled_scans(max_num_scans_for_loo, use_coroutines)
|
||||
local num_scans = vs_utils.process_all_scheduled_scans(max_num_scans_for_loop, use_coroutines)
|
||||
|
||||
local is_periodic_scan_over, periodicity = vs_utils.is_periodic_scan_over()
|
||||
|
||||
if (is_periodic_scan_over) then
|
||||
vs_utils.notify_end_periodicity_or_all_scan(true, periodicity)
|
||||
end
|
||||
|
||||
local is_scan_all_over = vs_utils.is_scan_all_over()
|
||||
|
||||
if (is_scan_all_over) then
|
||||
vs_utils.notify_end_periodicity_or_all_scan(false, nil)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue