summaryrefslogtreecommitdiff
path: root/extendedstats/darwin.go
diff options
context:
space:
mode:
authorJeroen Schickendantz <[email protected]>2022-08-22 11:40:59 -0400
committerWill Hawkins <[email protected]>2022-09-30 23:43:23 -0400
commitcc59a89fc3ac1fbdb16e417de01beecbd49616f0 (patch)
treeb4456e927c12a42c986e825cd265155d9e6bab8b /extendedstats/darwin.go
parenta4cabcf65b099b67747569b33fe43c345ea317ad (diff)
[Feature] Extend Throughput Logging
Extends throughput logging to continue even after saturation has been reached by the algorithm.
Diffstat (limited to 'extendedstats/darwin.go')
-rw-r--r--extendedstats/darwin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/extendedstats/darwin.go b/extendedstats/darwin.go
index 0f52be5..17298c9 100644
--- a/extendedstats/darwin.go
+++ b/extendedstats/darwin.go
@@ -12,7 +12,7 @@ import (
"golang.org/x/sys/unix"
)
-type ExtendedStats struct {
+type AggregateExtendedStats struct {
Maxseg uint64
MaxSendMss uint64
MaxRecvMss uint64
@@ -38,7 +38,7 @@ type TCPInfo struct {
Snd_cwnd uint32
}
-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 {
@@ -54,7 +54,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