mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
This commit is contained in:
parent
f1eb9d1c1a
commit
4c692e2c6e
5 changed files with 189 additions and 220 deletions
|
|
@ -466,12 +466,11 @@ function delete_data_utils.delete_active_interface_data_requested(if_name)
|
|||
if not isEmptyString(if_name) then
|
||||
-- Check if a delete has been requested for a particular interface
|
||||
local if_id = getInterfaceId(if_name)
|
||||
|
||||
if tonumber(if_id) >= 0 then
|
||||
local req = ntop.getHashCache(ACTIVE_INTERFACES_DELETE_HASH, tostring(if_id))
|
||||
if not isEmptyString(req) then
|
||||
return true
|
||||
end
|
||||
if tonumber(if_id) >= -1 then
|
||||
local req = ntop.getHashCache(ACTIVE_INTERFACES_DELETE_HASH, tostring(if_id))
|
||||
if not isEmptyString(req) then
|
||||
return true
|
||||
end
|
||||
end
|
||||
else
|
||||
-- Check if there's at least a data delete request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue