mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix InfluxDB incorrect timestamp while performing queries
This commit is contained in:
parent
b552d48034
commit
82305dd24a
7 changed files with 40 additions and 14 deletions
|
|
@ -59,7 +59,7 @@ end
|
|||
-- ##############################################
|
||||
|
||||
-- When performing the derivative between two points, the delta must be calculated
|
||||
-- and accounted for the first point time
|
||||
-- and accounted for the second point time
|
||||
function test_simple_derivative(test)
|
||||
local test_data = {
|
||||
{{v=1000}, now},
|
||||
|
|
@ -78,7 +78,7 @@ function test_simple_derivative(test)
|
|||
|
||||
local rv = test_utils.timestampAsKey(test_utils.makeTimeStamp(res.series, res.start, schema.options.step))[1]
|
||||
|
||||
local t1 = test_data[1][2]
|
||||
local t1 = test_data[2][2]
|
||||
|
||||
if not(rv[t1] == 1000) then
|
||||
return test:assertion_failed("rv[t1=".. t1 .."] == 1000")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue