// eta returns the ETA of the current operation,
// rounded to full seconds.
// If the ETA cannot be determined 'ok' returns false.
eta returns the ETA of the current operation,
rounded to full seconds.
If the ETA cannot be determined 'ok' returns false.
// eta returns the ETA of the current operation // rounded to full seconds . // If the ETA cannot be determined ' ok ' returns false .
func (acc *Account) eta() (etaDuration time.Duration, ok bool) {
	if acc == nil {
		return 0, false
	}
	acc.statmu.Lock()
	defer acc.statmu.Unlock()
	return eta(acc.bytes, acc.size, acc.avg)
}
func ( acc * Account ) eta ( ) ( etaDuration time . Duration , ok bool ) { if acc == nil { return 0 , false } acc . statmu . Lock ( ) defer acc . statmu . Unlock ( ) return eta ( acc . bytes , acc . size , acc . avg ) }
eta returns the ETA of the current operation,
rounded to full seconds.
eta returns the ETA of the current operation rounded to full seconds .