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

@ -519,7 +519,7 @@ function handleCustomFlowField(key, value, snmpdevice)
elseif((key == 'FLOW_USER_NAME') or (key == '57593')) then
elems = string.split(value, ';')
if((elems ~= nil) and (table.getn(elems) == 6)) then
if((elems ~= nil) and (#elems == 6)) then
r = '<table class="table table-bordered table-striped">'
imsi = elems[1]
mcc = string.sub(imsi, 1, 3)