Finishes rework of ArpStatsHashMatrix

This commit is contained in:
Simone Mainardi 2019-03-07 14:20:41 +01:00
parent ab9f9326da
commit 0a903c97ce
11 changed files with 93 additions and 139 deletions

View file

@ -0,0 +1,14 @@
--
-- (C) 2013-18 - ntop.org
--
local dirs = ntop.getDirs()
package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
require "lua_utils"
local json = require("dkjson")
local matrix = interface.getArpStatsMatrixInfo()
sendHTTPContentTypeHeader('application/json')
print(json.encode(matrix, {indent = true}))