mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Use schema name in timeseries API
This commit is contained in:
parent
39a7375727
commit
5d50622341
9 changed files with 86 additions and 108 deletions
|
|
@ -105,7 +105,7 @@ function find_schema(rrdFile, rrdfname, tags, ts_utils)
|
|||
end
|
||||
end
|
||||
|
||||
for _, schema in pairs(ts_utils.getLoadedSchemas()) do
|
||||
for schema_name, schema in pairs(ts_utils.getLoadedSchemas()) do
|
||||
-- verify tags compatibility
|
||||
for tag in pairs(schema.tags) do
|
||||
if tags[tag] == nil then
|
||||
|
|
@ -116,7 +116,7 @@ function find_schema(rrdFile, rrdfname, tags, ts_utils)
|
|||
local full_path = schema_get_full_path(schema, tags)
|
||||
|
||||
if full_path == rrdFile then
|
||||
return schema
|
||||
return schema_name
|
||||
end
|
||||
|
||||
::next_schema::
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue