这是indexloc提供的服务,不要输入任何密码
Skip to content

First progress bar is too long #38

@nicolas-martin

Description

@nicolas-martin

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()
	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions