uiprogress icon indicating copy to clipboard operation
uiprogress copied to clipboard

First progress bar is too long

Open nicolas-martin opened this issue 6 years ago • 0 comments

Doing something pretty simple here and I'm not sure why the display is wrong. [--------------------------------------------------------------------] 38/3805-------] 0/3805

	uiprogress.Start()         
	bar := uiprogress.AddBar(filesCount) 


	bar.AppendFunc(func(b *uiprogress.Bar) string {
		return fmt.Sprintf("%d/%d", b.Current(), b.Total)
	})

	for _, file := range files {
                 //process
		bar.Incr()
	}

nicolas-martin avatar Nov 22 '18 22:11 nicolas-martin