mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +00:00
Split 95th percentile by direction
This commit is contained in:
parent
ebe2e78b7e
commit
345b202975
5 changed files with 54 additions and 14 deletions
|
|
@ -696,6 +696,14 @@ function driver:query(schema, tstart, tend, tags, options)
|
|||
if options.calculate_stats then
|
||||
total_serie = makeTotalSerie(series, count)
|
||||
stats = ts_common.calculateStatistics(makeTotalSerie(unsampled_series, unsampled_count), unsampled_fstep, tend - tstart, schema.options.metrics_type)
|
||||
stats = stats or {}
|
||||
stats.by_serie = {}
|
||||
|
||||
-- Also calculate per-serie statistics
|
||||
for k, v in pairs(series) do
|
||||
local s = ts_common.calculateStatistics(v.data, unsampled_fstep, tend - tstart, schema.options.metrics_type)
|
||||
stats.by_serie[k] = s
|
||||
end
|
||||
end
|
||||
|
||||
if options.initial_point then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue