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

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