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

Use class instead of static variables for the speed measurement #168

Merged
merged 1 commit into from Nov 16, 2023

Conversation

pfefferle
Copy link
Contributor

this change should fix #144

@pfefferle pfefferle requested a review from a team as a code owner November 16, 2023 10:31
Copy link
Member

@danielbachhuber danielbachhuber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The fix works great, thanks!

Before

$ wp --require=test.php test multiple_progress_bars
1st pass  100% [=========================================================================================================================] 0:10 / 0:10
2nd pass  100% [=========================================================================================================================] 0:10 / 0:21
3rd pass  100% [=========================================================================================================================] 0:10 / 0:32

After

$ wp --require=test.php test multiple_progress_bars
1st pass  100% [=========================================================================================================================] 0:10 / 0:10
2nd pass  100% [=========================================================================================================================] 0:10 / 0:10
3rd pass  100% [=========================================================================================================================] 0:10 / 0:10

@danielbachhuber danielbachhuber added this to the 0.11.22 milestone Nov 16, 2023
@danielbachhuber danielbachhuber merged commit 8ffd0cf into wp-cli:master Nov 16, 2023
36 checks passed
@pfefferle pfefferle deleted the fix/144 branch November 16, 2023 11:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong expected total time in progress bar when make_progress_bar used multiple times
2 participants