mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Update in progress status handling. (#7782)
This commit is contained in:
parent
bf3c94e254
commit
d51acbd325
8 changed files with 103 additions and 49 deletions
|
|
@ -10,5 +10,11 @@ package.path = dirs.installdir .. "/scripts/lua/modules/vulnerability_scan/?.lua
|
|||
require "lua_utils"
|
||||
local rest_utils = require "rest_utils"
|
||||
local vs_utils = require "vs_utils"
|
||||
local total, total_in_progress = vs_utils.check_in_progress_status()
|
||||
|
||||
rest_utils.answer(rest_utils.consts.success.ok,{rsp = vs_utils.check_in_progress_status()})
|
||||
local rsp = {
|
||||
total = total,
|
||||
total_in_progress = total_in_progress,
|
||||
total_in_success = total - total_in_progress
|
||||
}
|
||||
rest_utils.answer(rest_utils.consts.success.ok, {rsp = rsp})
|
||||
Loading…
Add table
Add a link
Reference in a new issue