mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 07:59:35 +00:00
Fixes wrong upsampling of certain dashboard data
FixesÃ#3563
This commit is contained in:
parent
0a26fdd485
commit
4b8c82b924
2 changed files with 49 additions and 19 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue