mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Fix flow alerts with undefined pool/network. Cleanup code.
This commit is contained in:
parent
9f2724d91a
commit
98e077a7f8
5 changed files with 29 additions and 18 deletions
|
|
@ -5,7 +5,7 @@
|
|||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
require "lua_utils"
|
||||
require "network_utils"
|
||||
local network_utils = require "network_utils"
|
||||
local json = require("dkjson")
|
||||
|
||||
sendHTTPContentTypeHeader('text/html')
|
||||
|
|
@ -18,7 +18,7 @@ local n = interface.getNetworkStats(network)
|
|||
local res = {}
|
||||
|
||||
for k, v in pairs(n) do
|
||||
res = network2record(interface.getId(), v)
|
||||
res = network_utils.network2record(interface.getId(), v)
|
||||
break
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue