mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Add alert_ngi_trust_event alerts
This commit is contained in:
parent
d20b1e4739
commit
c5ca72c6ba
6 changed files with 91 additions and 6 deletions
|
|
@ -2623,8 +2623,16 @@ end
|
|||
function split(s, delimiter)
|
||||
result = {};
|
||||
if(s ~= nil) then
|
||||
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
|
||||
table.insert(result, match);
|
||||
if delimiter == nil then
|
||||
-- No delimiter, split all characters
|
||||
for match in s:gmatch"." do
|
||||
table.insert(result, match);
|
||||
end
|
||||
else
|
||||
-- Split by delimiter
|
||||
for match in (s..delimiter):gmatch("(.-)"..delimiter) do
|
||||
table.insert(result, match);
|
||||
end
|
||||
end
|
||||
end
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue