mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-28 23:19:33 +00:00
Removing lua utils in storage utils (#8227)
* Removing lua_utils from storage_utils * Remove profiling * Add missing requires for the 'flowinfo2hostname' method. * Move clickhouseSupport check to check_redis_prefs
This commit is contained in:
parent
7cf91395df
commit
1e9524d483
19 changed files with 109 additions and 96 deletions
|
|
@ -919,8 +919,7 @@ end
|
|||
-- Returns the size of a folder (size is in bytes)
|
||||
-- ! @param path the path to compute the size for
|
||||
-- ! @param timeout the maxium time to compute the size. If nil, it defaults to 15 seconds.
|
||||
function getFolderSize(path, timeout)
|
||||
local os_utils = require "os_utils"
|
||||
function getFolderSize(path, timeout, os_utils)
|
||||
local folder_size_key = "ntopng.cache.folder_size"
|
||||
local now = os.time()
|
||||
local expiration = 30 -- sec
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue