mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Fixes incorrect total calculation
This commit is contained in:
parent
f903a44771
commit
62aa8bd80a
1 changed files with 2 additions and 1 deletions
|
|
@ -555,7 +555,8 @@ function driver:timeseries_query(options)
|
|||
for i, data_serie in pairs(series) do
|
||||
-- Add statistics if requested, by default yes
|
||||
if options.calculate_stats then
|
||||
local s = ts_common.calculateStatistics(series[i].data, fstep, options.schema_info.options.keep_total,
|
||||
--tprint("Schema :" .. series[i].id)
|
||||
local s = ts_common.calculateStatistics(series[i].data, sampled_fstep, options.schema_info.options.keep_total,
|
||||
options.schema_info.options.metrics_type)
|
||||
local min_max = ts_common.calculateMinMax(data_serie.data)
|
||||
local statistics = table.merge(s, min_max)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue