func (this *Pinger) updateParams() {
	if this.TTL == 0 {
		this.TTL = defaultTTL
	}

	if this.Size < 8 {
		this.Size = defaultSize
	}

	if this.MaxRTT == 0 {
		this.MaxRTT = defaultMaxRTT
	}

	if this.Interval == 0 {
		this.Interval = defaultInterval
	}

	this.done = make(chan struct{})

	this.reschan = make(chan *PingResult, 100)

	this.results = make(map[string]*PingResult, len(this.IPs()))

	this.quitOnce = &sync.Once{}

	this.stopOnce = &sync.Once{}
}
// updateParams should only be called from Start()
updateParams should only be called from Start()
// updateParams should only be called from Start ()
func (this *Pinger) updateParams() {
	if this.TTL == 0 {
		this.TTL = defaultTTL
	}
	if this.Size < 8 {
		this.Size = defaultSize
	}
	if this.MaxRTT == 0 {
		this.MaxRTT = defaultMaxRTT
	}
	if this.Interval == 0 {
		this.Interval = defaultInterval
	}
	this.done = make(chan struct{})
	this.reschan = make(chan *PingResult, 100)
	this.results = make(map[string]*PingResult, len(this.IPs()))
	this.quitOnce = &sync.Once{}
	this.stopOnce = &sync.Once{}
}
func ( this * Pinger ) updateParams ( ) { if this . TTL == 0 { this . TTL = defaultTTL } if this . Size < 8 { this . Size = defaultSize } if this . MaxRTT == 0 { this . MaxRTT = defaultMaxRTT } if this . Interval == 0 { this . Interval = defaultInterval } this . done = make ( chan struct { } ) this . reschan = make ( chan * PingResult , 100 ) this . results = make ( map [ string ] * PingResult , len ( this . IPs ( ) ) ) this . quitOnce = & sync . Once { } this . stopOnce = & sync . Once { } }
updateParams should only be called from Start()
updateParams should only be called from Start ()