Commit 425255da authored by Adphi's avatar Adphi

fix destination's history reset

parent 266c365a
......@@ -231,7 +231,9 @@ func (p *_pinger) Stop() {
p.smu.Unlock()
p.dmu.Lock()
for k := range p.dsts {
p.dsts[k].history = &history{}
p.dsts[k].history = &history{
results: make([]time.Duration, p.opts.statBufferSize),
}
}
p.dmu.Unlock()
p.logger.Debug("Stopped")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment