Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ChangeMax64 did not work with OptionShowBytes #116

Merged
merged 1 commit into from Dec 20, 2021

Conversation

T1MOXA
Copy link
Contributor

@T1MOXA T1MOXA commented Oct 15, 2021

Test code:

bar := progressbar.NewOptions64(1, progressbar.OptionShowBytes(true), progressbar.OptionShowCount())
bar.ChangeMax64(500000)
bar.Add(250)

Output:
0% | | (250 B/ 1B, 466.006 kB/s) [0s:0s]

Expected output:
0% | | (250 B/488 kB, 466.006 kB/s) [0s:0s]

Test code:
```
bar := progressbar.NewOptions64(1, progressbar.OptionShowBytes(true), progressbar.OptionShowCount())
bar.ChangeMax64(500000)
bar.Add(250)
```

Output:
`0% |                                        | (250 B/ 1B, 466.006 kB/s) [0s:0s]`

Expected output:
`0% |                                        | (250 B/488 kB, 466.006 kB/s) [0s:0s]`
@schollz schollz merged commit eaf664f into schollz:master Dec 20, 2021
@schollz
Copy link
Owner

schollz commented Dec 20, 2021

Thanks!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants