mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
updated math in case of low memory
This commit is contained in:
parent
c9f3004e16
commit
036aa69206
1 changed files with 1 additions and 1 deletions
|
|
@ -402,7 +402,7 @@ function recording_utils.createConfig(ifid, params)
|
|||
return false
|
||||
end
|
||||
defaults.buffer_size = (mem_total_mb - min_sys_mem) / 2 -- leave some room for index memory and other processes
|
||||
defaults.max_file_size = math.floor(defaults.buffer_size/4)
|
||||
defaults.max_file_size = math.floor(defaults.buffer_size/num_buffered_files)
|
||||
end
|
||||
|
||||
-- Computing core affinity
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue