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/windows.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/windows.go')
| -rw-r--r-- | extendedstats/windows.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/extendedstats/windows.go b/extendedstats/windows.go index 5c0fbd9..f38ffbd 100644 --- a/extendedstats/windows.go +++ b/extendedstats/windows.go @@ -13,7 +13,7 @@ import ( "golang.org/x/sys/windows" ) -type ExtendedStats struct { +type AggregateExtendedStats struct { MaxMss uint64 TotalBytesSent uint64 TotalBytesReceived uint64 @@ -106,7 +106,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 := getTCPInfoRaw(basicConn); err != nil { return fmt.Errorf("OOPS: Could not get the TCP info for the connection: %v", err) } else { @@ -124,7 +124,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 Segment Size: %v Total Bytes Retransmitted: %v |
