mirror of https://github.com/hashicorp/consul
Zeroes out the height when testing exact distances.
parent
384d99677d
commit
80d5a3029f
|
@ -20,6 +20,7 @@ import (
|
|||
func generateCoordinate(rtt time.Duration) *coordinate.Coordinate {
|
||||
coord := coordinate.NewCoordinate(coordinate.DefaultConfig())
|
||||
coord.Vec[0] = rtt.Seconds()
|
||||
coord.Height = 0
|
||||
return coord
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue