mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fixed stats calculation
This commit is contained in:
parent
0ffb459bce
commit
3ff92d852a
2 changed files with 7 additions and 7 deletions
|
|
@ -543,14 +543,14 @@ function driver:query(schema, tstart, tend, tags, options)
|
|||
total_series = makeTotalSerie(series, count)
|
||||
-- statistics used in report page
|
||||
local total_series = makeTotalSerie(series, count)
|
||||
stats = ts_common.calculateStatistics(total_series, fstep, tend - tstart, schema.options.metrics_type)
|
||||
stats = ts_common.calculateStatistics(total_series, sampled_fstep, tend - tstart, schema.options.metrics_type)
|
||||
|
||||
stats = stats or {}
|
||||
stats.by_serie = {}
|
||||
|
||||
-- Also calculate per-series statistics
|
||||
for k, v in pairs(series) do
|
||||
local s = ts_common.calculateStatistics(v.data, fstep, tend - tstart, schema.options.metrics_type)
|
||||
local s = ts_common.calculateStatistics(v.data, sampled_fstep, tend - tstart, schema.options.metrics_type)
|
||||
local min_max = ts_common.calculateMinMax(v.data)
|
||||
|
||||
-- Adding per timeseries min-max stats
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue