From ab9fa20a50d145ee763084cadf5bc9c188771328 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Tue, 22 Oct 2019 16:53:47 +0100 Subject: [PATCH] Update comments --- tunnel/link.go | 2 +- tunnel/tunnel.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tunnel/link.go b/tunnel/link.go index 580c6abd..22362198 100644 --- a/tunnel/link.go +++ b/tunnel/link.go @@ -90,7 +90,7 @@ func (l *link) Delay() int64 { return 0 } -// Transfer rate capability as bits per second (higher is better) +// Current transfer rate as bits per second (lower is better) func (l *link) Rate() float64 { return float64(10e8) } diff --git a/tunnel/tunnel.go b/tunnel/tunnel.go index cc03f07f..9a52ffaf 100644 --- a/tunnel/tunnel.go +++ b/tunnel/tunnel.go @@ -59,9 +59,9 @@ type Link interface { Id() string // Status of the link e.g connected/closed Status() string - // Delay is the current load on the link + // Delay is the current load on the link (lower is better) Delay() int64 - // Transfer rate capability as bits per second (higher is better) + // Current transfer rate as bits per second (lower is better) Rate() float64 // Length returns the roundtrip time as nanoseconds (lower is better) Length() int64