Fix invalid upsampling due to missing points in composed charts

This commit is contained in:
emanuele-f 2019-11-14 20:03:07 +01:00
parent bea63668b8
commit 4628ad3bcd
2 changed files with 5 additions and 2 deletions

View file

@ -496,7 +496,9 @@ local function influx2Series(schema, tstart, tend, tags, options, data, time_ste
-- Fill the missing points at the end
while((tend - next_t) >= 0) do
if(next_t > last_ts) then
-- NOTE: fill_series is required for composed charts. In such case,
-- not filling the serie would result into an incorrect upsampling
if((not options.fill_series) and (next_t > last_ts)) then
-- skip values exceeding the last point
break
end