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

Estimated end sometimes has strange Debug ouput in it #761

Open
joshtriplett opened this issue Jan 7, 2025 · 1 comment
Open

Estimated end sometimes has strange Debug ouput in it #761

joshtriplett opened this issue Jan 7, 2025 · 1 comment

Comments

@joshtriplett
Copy link
Member

Image

Estimated end: TimeDelta { secs: -1, nanos: 884994194 }

@Skgland
Copy link
Contributor

Skgland commented Jan 7, 2025

I think this is related to #660.

Due to the completed crates being more than the total crates the calculated remaining crates are negative, which results in a negative remaining time being calculated.
A negative chrono::TimeDelta can't be represented by the std Duration type so the conversion fails and it falls back to debug printing in https://github.com/rust-lang/crater/blob/master/src/server/routes/ui/experiments.rs#L134

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

No branches or pull requests

2 participants