mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Removed circular dependency on network_utils
This commit is contained in:
parent
2fe9cb0a20
commit
ddadaf3e77
9 changed files with 37 additions and 46 deletions
|
|
@ -5,7 +5,7 @@
|
|||
local dirs = ntop.getDirs()
|
||||
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
||||
require "lua_utils"
|
||||
local network_utils = require "network_utils"
|
||||
local network_formatter = require "network_formatter"
|
||||
|
||||
local json = require("dkjson")
|
||||
|
||||
|
|
@ -88,7 +88,7 @@ for n, _ in pairsByValues(sort_helper, ternary(sOrder, asc, rev)) do
|
|||
goto continue
|
||||
end
|
||||
|
||||
local record = network_utils.network2record(interface.getId(), networks_stats[n])
|
||||
local record = network_formatter.network2record(interface.getId(), networks_stats[n])
|
||||
res_formatted[#res_formatted + 1] = record
|
||||
|
||||
tot_row_in_page = tot_row_in_page + 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue