mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-05 02:16:39 +00:00
Fix invalid upsampling due to missing points in composed charts
This commit is contained in:
parent
bea63668b8
commit
4628ad3bcd
2 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue