Fixes query total in case of nan value

This commit is contained in:
Matteo Biscosi 2023-11-09 11:40:36 +00:00
parent 9ef85cb798
commit fa2d6cdf39

View file

@ -1163,7 +1163,8 @@ function driver:queryTotal(schema, tstart, tend, tags, options)
for i, v in pairs(serie) do
local v = ts_common.normalizeVal(v, max_val, options)
if type(v) == "number" then
-- v is not null
if v == v then
sum = sum + v * fstep
end
end