mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 10:41:34 +00:00
[VS] Add a license check before sending an email at the end of the periodic scan.
This commit is contained in:
parent
0df01f48c5
commit
3dfa1851a4
1 changed files with 7 additions and 4 deletions
|
|
@ -16,15 +16,18 @@ local use_coroutines = true
|
|||
local max_num_scans_for_loop = 4 -- avoid lasting too long (too many loops)
|
||||
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)
|
||||
if(ntop.isEnterpriseL()) then
|
||||
-- send the notification at the end of periodic scan
|
||||
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
|
||||
end
|
||||
|
||||
local is_scan_all_over = vs_utils.is_scan_all_over()
|
||||
|
||||
if (is_scan_all_over) then
|
||||
-- send notification at the end of scan all
|
||||
vs_utils.notify_end_periodicity_or_all_scan(false, nil)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue