-
Notifications
You must be signed in to change notification settings - Fork 161
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
fix: progress rates were overcounted by 5x #3919
Conversation
src/utils/io/progress_log.rs
Outdated
@@ -233,14 +235,14 @@ mod tests { | |||
progress.last_logged_items = 1024 * 1024 * 1024 / 3; | |||
assert_eq!( | |||
progress.msg(now + Duration::from_secs(125)), | |||
"test 512 MiB / 1 GiB, 50%, 170.7 MiB/s, elapsed time: 2m 5s" | |||
"test 512 MiB / 1 GiB, 50%, 1.4 MiB/s, elapsed time: 2m 5s" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please explain why the speed is 1.4 MiB/s? It'd be nice to have a comment with the math regarding the expectations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's a good point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding comments, that helps.
Co-authored-by: Hubert <[email protected]>
Summary of changes
Changes introduced in this pull request:
time_in_seconds
to get the real progress in units per second.Reference issue to close (if applicable)
Closes
Other information and links
Change checklist