// NewAccountSizeName makes a Account reader for an io.ReadCloser of
// the given size and name
NewAccountSizeName makes a Account reader for an io.ReadCloser of
the given size and name
// NewAccountSizeName makes a Account reader for an io . ReadCloser of // the given size and name
func NewAccountSizeName(in io.ReadCloser, size int64, name string) *Account {
	acc := &Account{
		in:     in,
		close:  in,
		origIn: in,
		size:   size,
		name:   name,
		exit:   make(chan struct{}),
		avg:    0,
		lpTime: time.Now(),
		max:    int64(fs.Config.MaxTransfer),
	}
	go acc.averageLoop()
	Stats.inProgress.set(acc.name, acc)
	return acc
}
func NewAccountSizeName ( in io . ReadCloser , size int64 , name string ) * Account { acc := & Account { in : in , close : in , origIn : in , size : size , name : name , exit : make ( chan struct { } ) , avg : 0 , lpTime : time . Now ( ) , max : int64 ( fs . Config . MaxTransfer ) , } go acc . averageLoop ( ) Stats . inProgress . set ( acc . name , acc ) return acc }
NewAccountSizeName makes a Account reader for an io.ReadCloser of
the given size and name
NewAccountSizeName makes a Account reader for an io . ReadCloser of the given size and name