From ab39f29b51f8737862e1b692f31fbcc4ba87d290 Mon Sep 17 00:00:00 2001 From: paulc Date: Fri, 25 Dec 2020 13:39:58 +1100 Subject: [PATCH] add trackerLength to p.Size in New() --- ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ping.go b/ping.go index dd79036..127f0c5 100644 --- a/ping.go +++ b/ping.go @@ -90,7 +90,7 @@ func New(addr string) *Pinger { Count: -1, Interval: time.Second, RecordRtts: true, - Size: timeSliceLength, + Size: timeSliceLength + trackerLength, Timeout: time.Duration(math.MaxInt64), Tracker: r.Uint64(),