Added changes to seamlessly use LuaJIT (default) or the standard (non JIT) Lua

This commit is contained in:
Luca Deri 2018-06-12 23:05:30 +02:00
parent 3cf623901c
commit 203404df5b
9 changed files with 24 additions and 25 deletions

View file

@ -201,7 +201,7 @@ local function create_rrd(schema, path)
-- NOTE: this is either a bug with unpack or with Lua.cpp make_argv
params[#params + 1] = ""
ntop.rrd_create(unpack(params))
ntop.rrd_create(table.unpack(params))
return true
end
@ -215,7 +215,7 @@ local function update_rrd(schema, rrdfile, timestamp, data)
params[#params + 1] = tolongint(data[metric])
end
ntop.rrd_update(rrdfile, unpack(params))
ntop.rrd_update(rrdfile, table.unpack(params))
end
-------------------------------------------------------