Logstash flow export extension

This commit is contained in:
Bogdan Perian 2017-03-25 21:09:07 +02:00
parent c546315c15
commit 90743b953a
16 changed files with 386 additions and 16 deletions

View file

@ -486,7 +486,7 @@ end
-- print(_key .. "=" .. _value .. "\n")
--end
function round(num, idp) return tonumber(string.format("%." .. (idp or 0) .. "f", num)) end
function round(num, idp) return tonumber(string.format("%." .. (idp or 0) .. "f", num)) end
--function round(num) return math.floor(num+.5) end
-- Note that the function below returns a string as returning a number