From cc59a89fc3ac1fbdb16e417de01beecbd49616f0 Mon Sep 17 00:00:00 2001 From: Jeroen Schickendantz <60529194+Schickendantzj@users.noreply.github.com> Date: Mon, 22 Aug 2022 11:40:59 -0400 Subject: [Feature] Extend Throughput Logging Extends throughput logging to continue even after saturation has been reached by the algorithm. --- extendedstats/unix.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extendedstats/unix.go') diff --git a/extendedstats/unix.go b/extendedstats/unix.go index 3db94fc..270a956 100644 --- a/extendedstats/unix.go +++ b/extendedstats/unix.go @@ -12,7 +12,7 @@ import ( "golang.org/x/sys/unix" ) -type ExtendedStats struct { +type AggregateExtendedStats struct { MaxPathMtu uint64 MaxSendMss uint64 MaxRecvMss uint64 @@ -27,7 +27,7 @@ func ExtendedStatsAvailable() bool { return true } -func (es *ExtendedStats) IncorporateConnectionStats(basicConn net.Conn) error { +func (es *AggregateExtendedStats) IncorporateConnectionStats(basicConn net.Conn) error { if info, err := GetTCPInfo(basicConn); err != nil { return fmt.Errorf("OOPS: Could not get the TCP info for the connection: %v", err) } else { @@ -44,7 +44,7 @@ func (es *ExtendedStats) IncorporateConnectionStats(basicConn net.Conn) error { return nil } -func (es *ExtendedStats) Repr() string { +func (es *AggregateExtendedStats) Repr() string { return fmt.Sprintf(`Extended Statistics: Maximum Path MTU: %v Maximum Send MSS: %v -- cgit v1.2.3