-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: flooring of progress when rate is low #1766
Conversation
|
Codecov Report
@@ Coverage Diff @@
## master #1766 +/- ##
==========================================
- Coverage 71.45% 71.43% -0.03%
==========================================
Files 178 178
Lines 13777 13784 +7
==========================================
+ Hits 9845 9846 +1
- Misses 3319 3324 +5
- Partials 613 614 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Would be nice to have at least a test case associated with it. Maybe in |
Thank you for the suggestion! I'll start working on it. |
Hey again! I looked at the code in Would be great if I could get some help with adding a test case for this. Thanks! |
@darkaether Thanks for the PR, and yeah, testing this as is would be difficult since this value is only exposed when rendered in the UI. I'm wondering if this logic is generic enough for all use cases where If so, we could make it part of that function, otherwise you could extract this into a standalone function in |
This also seems to be broken in the ramping arrival rate as well ... I wonder if it won't be easier and more user friendly for the format to be something like "1/5s" (read as "1 per 5 seconds") instead of getting floats involved ... as "0.2/s" seems ... bad IMO ... and it might be okay here, but the ramping arrival rate will change this so it will be something like "0.1112/s" then "0.1113/s" and so on ... instead it should probably go from something like "0/20s" to "1/20s" or similar ... Where always the "/s" is just what is configured and the number in front is the only thing that changes |
Hey! Sorry for the late response. This sounds like an interesting idea. This definitely seems like it would be more readable especially for smaller fractions. If it sounds reasonable and in scope, I could try out this change. |
Closing in favor of #2282. As mentioned there - there has been some internal debate and we fill some fix is better than no fix, and nobody has had time to try my idea, which also will make the UI a bit less intuitive - given that it will have different timeUnits on the screen. It also doesn't fix going from 0 to 1 over long periods for example. Thanks for the PR @darkaether 🙇 , even though it won't be merged you have helped push this issue forward 🎉 |
Fixes flooring of the rate when precision is 0 and the rate is low (between 0 and 1).
Closes #1753
Any feedback and suggestions are welcome!