diff options
| author | Will Hawkins <[email protected]> | 2022-10-03 08:28:41 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-10-03 08:28:41 -0400 |
| commit | 1ccd544faa96941a1be93e2cdd4874d3f1d9e82c (patch) | |
| tree | b4456e927c12a42c986e825cd265155d9e6bab8b /extendedstats/unix.go | |
| parent | a4cabcf65b099b67747569b33fe43c345ea317ad (diff) | |
| parent | cc59a89fc3ac1fbdb16e417de01beecbd49616f0 (diff) | |
Merge pull request #37 from network-quality/Enhance-Throughput-Logging
[Feature] Extend Throughput Logging
Diffstat (limited to 'extendedstats/unix.go')
| -rw-r--r-- | extendedstats/unix.go | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
