mirror of
https://github.com/status-im/consul.git
synced 2025-02-13 14:16:35 +00:00
Zeroes out the height when testing exact distances.
This commit is contained in:
parent
384d99677d
commit
80d5a3029f
@ -20,6 +20,7 @@ import (
|
|||||||
func generateCoordinate(rtt time.Duration) *coordinate.Coordinate {
|
func generateCoordinate(rtt time.Duration) *coordinate.Coordinate {
|
||||||
coord := coordinate.NewCoordinate(coordinate.DefaultConfig())
|
coord := coordinate.NewCoordinate(coordinate.DefaultConfig())
|
||||||
coord.Vec[0] = rtt.Seconds()
|
coord.Vec[0] = rtt.Seconds()
|
||||||
|
coord.Height = 0
|
||||||
return coord
|
return coord
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user