add trackerLength to p.Size in New()

This commit is contained in:
paulc 2020-12-25 13:39:58 +11:00 committed by Cam
parent 62f79f1f4f
commit ab39f29b51
No known key found for this signature in database
GPG Key ID: EE812B08DF32F58C

View File

@ -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(),