Skip to content

Conversation

@caspermeijn
Copy link
Contributor

Duration -0.123s was formatted as a positive number.

@caspermeijn
Copy link
Contributor Author

@mumbleskates I took a shot at fuzzing duration. It is difficult to find another implementation to compare to. But I found this bug at least.

Duration `-0.123s` was formatted as a positive number.
@caspermeijn caspermeijn force-pushed the fix_format_duration branch from ba5217c to f32a68c Compare July 26, 2024 09:13
@mumbleskates
Copy link
Contributor

oh nice! thank you.

yes, the standards for time intervals i know of are fearsomely complicated and I'd be hesitant to make anything much more complicated. maybe adding hours and minutes would be friendly but it's not really necessary

@caspermeijn caspermeijn added this pull request to the merge queue Jul 31, 2024
Merged via the queue into tokio-rs:master with commit d16bed8 Jul 31, 2024
@caspermeijn caspermeijn deleted the fix_format_duration branch July 31, 2024 11:51
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.

2 participants