mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-01 00:19:33 +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
|
|
@ -522,7 +522,7 @@ end
|
|||
-- ##############################################
|
||||
|
||||
function run(tester)
|
||||
if influxdb.db == nil then
|
||||
if influx2Series == nil then
|
||||
print("Skipping influx2Series tests. Enable InfluxDB export in order to test.<br/>")
|
||||
return(true)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ local replacement_tag = "some_other_tag"
|
|||
local prefixes_to_skip = {
|
||||
test = true,
|
||||
mac = true, -- Collides with host, but a MAC address is different from an IP address
|
||||
influxdb = true,
|
||||
}
|
||||
|
||||
local suffixes_to_skip = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue