mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Added changes to seamlessly use LuaJIT (default) or the standard (non JIT) Lua
This commit is contained in:
parent
3cf623901c
commit
203404df5b
9 changed files with 24 additions and 25 deletions
|
|
@ -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
|
||||
|
||||
-------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue