mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 23:49:33 +00:00
Removed circular dependence
This commit is contained in:
parent
43dcfa78e8
commit
922f816157
3 changed files with 11 additions and 6 deletions
|
|
@ -266,13 +266,13 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function getLocalNetworkAliasById(network)
|
||||
local network_utils = require "network_utils"
|
||||
local network_consts = require "network_consts"
|
||||
|
||||
local networks_stats = interface.getNetworksStats()
|
||||
local networks_stats = interface.getNetworksStats() or {}
|
||||
local network_id = tonumber(network)
|
||||
|
||||
-- If network is (u_int8_t)-1 then return an empty value
|
||||
if network == nil or network == network_utils.UNKNOWN_NETWORK then
|
||||
if network == nil or network == network_consts.UNKNOWN_NETWORK then
|
||||
return ' '
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue