diff options
| author | Jeroen Schickendantz <[email protected]> | 2022-08-22 11:40:59 -0400 |
|---|---|---|
| committer | Will Hawkins <[email protected]> | 2022-09-30 23:43:23 -0400 |
| commit | cc59a89fc3ac1fbdb16e417de01beecbd49616f0 (patch) | |
| tree | b4456e927c12a42c986e825cd265155d9e6bab8b /extendedstats/windows.go | |
| parent | a4cabcf65b099b67747569b33fe43c345ea317ad (diff) | |
[Feature] Extend Throughput Logging
Extends throughput logging to continue even after saturation has been reached by the algorithm.
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 |
