mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
computing n2disk buffer based on system memory size
This commit is contained in:
parent
b6606b8916
commit
a8081cc66f
2 changed files with 33 additions and 0 deletions
|
|
@ -2346,6 +2346,14 @@ end
|
|||
|
||||
-- ###############################################
|
||||
|
||||
-- removes trailing/leading spaces
|
||||
function trimString(s)
|
||||
return (s:gsub("^%s*(.-)%s*$", "%1"))
|
||||
end
|
||||
|
||||
-- ###############################################
|
||||
|
||||
-- removes all spaces
|
||||
function trimSpace(what)
|
||||
if(what == nil) then return("") end
|
||||
return(string.gsub(string.gsub(what, "%s+", ""), "+%s", ""))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue