-
Notifications
You must be signed in to change notification settings - Fork 15
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
Line.eta is not nice to slow processes. #23
Comments
Thanks for the report! This seems like just an oversight from me. Generally, I'll try to look at this shortly, but time is against me at the moment. |
Thanks for your answer! I'm not sure I get your point about precision: it seems a |
Hi! I noticed this as well, thanks for the discussion, that was helpful! I tried @pveber 's proposed change in a PR, it seemed to do the trick. As far as I can tell, this does not add new allocation and removes some |
Actually, |
#27 is merger now but I will keep this issue open and see if we observe some performance regressions due to the usage of a |
CHANGES: - Revert the `terminal` API and keep an "happy" path to get size of a tty and be compatible with MirageOS (@art-w, @msprotz, craigfe/progress#42, craigfe/progress#43) - Use a `float` instead of a `int` in `flow_meter per-second` (@mbarbin, craigfe/progress#23, craigfe/progress#27)
Thanks everyone for having a look at this!
|
First, thanks for this awesome library! I'm trying to use
Line.eta
but I always get a--:--
display. I figured out that in my case the event rate is less than 1. This is a problem because this rate seems to be represented by an integer (see the variableper_second
).More generally I don't really understand why
Flow_meter.per_second
doesn't return a float, since it basically computes a sample estimate of a rate.The text was updated successfully, but these errors were encountered: