mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-03 01:10:10 +00:00
Migrates datasource datamodel to new class implementation
This commit is contained in:
parent
75b66d82b9
commit
37c58f56de
10 changed files with 30 additions and 30 deletions
|
|
@ -7,7 +7,7 @@ package.path = dirs.installdir .. "/scripts/lua/modules/?.lua;" .. package.path
|
|||
|
||||
require("lua_utils")
|
||||
local datasources_utils = require("datasources_utils")
|
||||
local datamodel = require("datamodel_utils")
|
||||
local datamodel = require("datamodel")
|
||||
|
||||
local function reportError(msg)
|
||||
print(json.encode({ error = msg, success = false, csrf = ntop.getRandomCSRFValue() }))
|
||||
|
|
@ -19,7 +19,7 @@ local key_mac = _GET["key_mac"]
|
|||
local key_asn = _GET["key_asn"]
|
||||
local key_metric = _GET["key_metric"]
|
||||
|
||||
local m = datamodel:create({"x", "y"})
|
||||
local m = datamodel:new({"x", "y"})
|
||||
local when = 0
|
||||
|
||||
for i=1,5 do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue