mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 15:39:33 +00:00
Timeseries charts fixes
This commit is contained in:
parent
24863aade4
commit
5089e4dabe
5 changed files with 19 additions and 10 deletions
|
|
@ -340,10 +340,10 @@ function printSeries(options, tags, start_time, base_url, params)
|
|||
local needs_separator = false
|
||||
local separator_label = nil
|
||||
|
||||
-- TODO remove after proper migration of flows to the new schema
|
||||
if params.host then
|
||||
if params.host_idkey then
|
||||
-- this can contain a MAC address for local broadcast domain hosts
|
||||
tags = table.clone(tags)
|
||||
tags.host = params.host
|
||||
tags.host = params.host_idkey
|
||||
end
|
||||
|
||||
for _, serie in ipairs(series) do
|
||||
|
|
@ -588,6 +588,12 @@ print[[
|
|||
end
|
||||
end
|
||||
|
||||
if options.host_idkey then
|
||||
-- this can contain a MAC address for local broadcast domain hosts
|
||||
tags = table.clone(tags)
|
||||
tags.host = options.host_idkey
|
||||
end
|
||||
|
||||
local data = ts_utils.query(schema, tags, start_time, end_time)
|
||||
|
||||
if(data) then
|
||||
|
|
@ -643,7 +649,7 @@ local page_params = {
|
|||
ts_schema = schema,
|
||||
zoom = zoomLevel or '',
|
||||
epoch = selectedEpoch or '',
|
||||
host = options.fixme_host,
|
||||
host_idkey = options.host_idkey,
|
||||
}
|
||||
|
||||
if(options.timeseries) then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue