Skip to content

Commit

Permalink
Modify the round trip time to floating point
Browse files Browse the repository at this point in the history
Signed-off-by: Aswin Surayanarayanan <[email protected]>
  • Loading branch information
aswinsuryan authored and tpantelis committed Nov 10, 2020
1 parent 365f238 commit d637585
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pkg/apis/submariner.io/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package v1

import (
"fmt"
"time"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down Expand Up @@ -84,14 +83,14 @@ type GatewayStatus struct {
Connections []Connection `json:"connections"`
}

// LatencySpec describes the round trip time information in nanoseconds for a packet
// LatencySpec describes the round trip time information in miliseconds for a packet
// between the gateway pods of two clusters.
type LatencySpec struct {
LastRTT time.Duration `json:"lastRTT"`
MinRTT time.Duration `json:"minRTT"`
AverageRTT time.Duration `json:"averageRTT"`
MaxRTT time.Duration `json:"maxRTT"`
StdDevRTT time.Duration `json:"stddevRTT"`
LastRTT float64 `json:"lastRTT"`
MinRTT float64 `json:"minRTT"`
AverageRTT float64 `json:"averageRTT"`
MaxRTT float64 `json:"maxRTT"`
StdDevRTT float64 `json:"stddevRTT"`
}

// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
Expand Down

0 comments on commit d637585

Please sign in to comment.