First code cleanup for better memory management

This commit is contained in:
Matteo Biscosi 2024-02-14 16:12:28 +00:00
parent b5a4c2621b
commit 2f76c9bf4b
21 changed files with 968 additions and 852 deletions

View file

@ -2,17 +2,20 @@
-- (C) 2014-24 - ntop.org
--
local dirs = ntop.getDirs()
-- Hack to avoid include loops
if(pragma_once_os_utils == true) then
-- avoid multiple inclusions
return
end
pragma_once_os_utils = true
local dirs = ntop.getDirs()
local clock_start = os.clock()
local tracker = require "tracker"
local os_utils = {}
local is_windows = ntop.isWindows()
local dirs = ntop.getDirs()
local os_utils = {}
-- ########################################################