Removed circular dependency on network_utils

This commit is contained in:
Matteo Biscosi 2024-02-19 11:04:06 +00:00
parent 2fe9cb0a20
commit ddadaf3e77
9 changed files with 37 additions and 46 deletions

View file

@ -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