mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
parent
29f9012769
commit
889fa6f215
9 changed files with 12 additions and 16 deletions
|
|
@ -7,7 +7,6 @@ package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|||
|
||||
require "top_talkers"
|
||||
require "top_structure"
|
||||
require "json"
|
||||
|
||||
local top_vlan_intf = {}
|
||||
|
||||
|
|
@ -43,7 +42,7 @@ end
|
|||
|
||||
local function getTopVLANFromJSON(content, add_vlan)
|
||||
if(content == nil) then return("[ ]\n") end
|
||||
local table = parseJSON(content)
|
||||
local table = json.decode(content, 1)
|
||||
if (table == nil or table[top_vlan_intf.JSONkey] == nil) then return "[ ]\n" end
|
||||
local nr_elements = 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue