mirror of
https://github.com/go-ping/ping.git
synced 2025-06-24 05:07:07 +00:00
add trackerLength to p.Size in New()
This commit is contained in:
parent
62f79f1f4f
commit
ab39f29b51
2
ping.go
2
ping.go
@ -90,7 +90,7 @@ func New(addr string) *Pinger {
|
|||||||
Count: -1,
|
Count: -1,
|
||||||
Interval: time.Second,
|
Interval: time.Second,
|
||||||
RecordRtts: true,
|
RecordRtts: true,
|
||||||
Size: timeSliceLength,
|
Size: timeSliceLength + trackerLength,
|
||||||
Timeout: time.Duration(math.MaxInt64),
|
Timeout: time.Duration(math.MaxInt64),
|
||||||
Tracker: r.Uint64(),
|
Tracker: r.Uint64(),
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user