Fixed chart label wrongly formatted (#5552)

This commit is contained in:
MatteoBiscosi 2021-06-25 10:57:01 +02:00
parent f87c6d0166
commit 6c9b183819
5 changed files with 43 additions and 24 deletions

View file

@ -609,7 +609,8 @@ function driver:query(schema, tstart, tend, tags, options)
-- 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
-- Adding per timeseries min-max stats
stats.by_serie[k] = table.merge(s, ts_common.calculateMinMax(v.data))
end
end