func (p *Progress) SetTotal(total int) {
	p.mutex.Lock()
	defer p.mutex.Unlock()

	p.total = total
	p.calculatePercent()
}
// SetTotal sets the total number of work units. This is used to calculate the
// progress percentage.
SetTotal sets the total number of work units. This is used to calculate the
progress percentage.
// SetTotal sets the total number of work units . This is used to calculate the // progress percentage .
func (p *Progress) SetTotal(total int) {
	p.mutex.Lock()
	defer p.mutex.Unlock()
	p.total = total
	p.calculatePercent()
}
func ( p * Progress ) SetTotal ( total int ) { p . mutex . Lock ( ) defer p . mutex . Unlock ( ) p . total = total p . calculatePercent ( ) }
SetTotal sets the total number of work units.
SetTotal sets the total number of work units .