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

fix: avoid hitting 100% before print is complete #1455

Merged
merged 1 commit into from
Jul 9, 2023

Conversation

jamincollins
Copy link
Contributor

The existing implementation will report 100% from 99.5% on, due to round(). Switching to floor() instead, which will report 99% until complete.

Description

This PR fixes a display bug where prints will report 100% anytime they are at 99.5% or higher.

Related Tickets & Documents

There is a Discord support thread:
https://discord.com/channels/758059413700345988/1126955424999035061

Mobile & Desktop Screenshots/Recordings

2023-05-06_22-41
mainsail-progress-percent

[optional] Are there any post-deployment tasks we need to perform?

no

The existing implementation will report 100% from 99.5% on, due to
round(). Switching to floor() instead, which will report 99% until
complete.

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
@meteyou meteyou merged commit 3959000 into mainsail-crew:develop Jul 9, 2023
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.

3 participants