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 microsecond calculation for TimeSpec #1801

Merged
merged 1 commit into from
Aug 21, 2022

Conversation

StephanvanSchaik
Copy link
Contributor

The implementation of num_microseconds() for TimeSpec returns the number of seconds not microseconds, as it divided by the wrong factor. The number of nanoseconds should be divided by 1000 to get the number of microseconds.

@rtzoeller
Copy link
Collaborator

@StephanvanSchaik thanks! Can you add an entry to CHANGELOG.md, ideally squashed into the current commit?

@StephanvanSchaik
Copy link
Contributor Author

@rtzoeller Done!

Copy link
Collaborator

@rtzoeller rtzoeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@bors bors bot merged commit 82fe82a into nix-rust:master Aug 21, 2022
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