Fixes wrong upsampling of certain dashboard data

FixesÃ#3563
This commit is contained in:
Simone Mainardi 2020-03-18 09:29:42 +01:00
parent 0a26fdd485
commit 4b8c82b924
2 changed files with 49 additions and 19 deletions

View file

@ -91,7 +91,9 @@ end
-- ##############################################
-- NOTE: this corresponds to graph_utils interpolateSerie
-- This is approximate
-- This is approximate.
-- Aproximate means it doesn't adjust the step.
-- TODO: take as input and adjust the step as well.
function ts_common.upsampleSerie(serie, num_points)
if num_points <= #serie then
return serie