Skip to content

Fix nanoseconds calculation in uuid.c #138

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

Merged
merged 1 commit into from
Dec 13, 2015

Conversation

kovpas
Copy link
Contributor

@kovpas kovpas commented Dec 13, 2015

calculation of tv->tv_nsec is broken:

  • it's by one order of magnitude more than it should be.
  • it should be now % 1000000000 (now - (now / NSEC_PER_SEC) * NSEC_PER_SEC)

parkera added a commit that referenced this pull request Dec 13, 2015
Fix nanoseconds calculation in uuid.c
@parkera parkera merged commit 281aa0f into swiftlang:master Dec 13, 2015
@kovpas kovpas deleted the uuid_time_fix branch December 19, 2015 16:00
atrick pushed a commit to atrick/swift-corelibs-foundation that referenced this pull request Jan 12, 2021
make project.json spec-compliant by removing a trailing comma
kateinoigakukun pushed a commit to kateinoigakukun/swift-corelibs-foundation that referenced this pull request Oct 11, 2023
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