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

loadbalancer: fix NormalizedTimeSourceExecutor to work with units other than nanos #2791

Conversation

bryce-anderson
Copy link
Contributor

Motivation:

The time source normalizes itself using nanoseconds regardless
of what units the user is requesting.

Modifications:

  • Always get the current time in nanos, normalize, then convert to
    the desired units.

Result:

Better behavior if you request anything other than nanos.

…er than nanos

Motivation:

The time source normalizes itself using nanoseconds regardless
of what units the user is requesting.

Modifications:

- Always get the current time in nanos, normalize, then convert
  to the desired units.

Result:

Better behavior.
@bryce-anderson bryce-anderson merged commit e5784f8 into apple:main Dec 21, 2023
15 checks passed
@bryce-anderson bryce-anderson deleted the bl_anderson/fix_NormalizedTimeSourceExecutor branch December 21, 2023 18:24
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