Skip to content

NR-126476: update NTP interval check on error #1699

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 4 commits into from
Jul 19, 2023

Conversation

rogercoll
Copy link
Contributor

No description provided.

@rogercoll rogercoll force-pushed the NR-126476_avoid_ntp_check branch from 37059ac to 5239bae Compare July 18, 2023 08:13
@rogercoll rogercoll force-pushed the NR-126476_avoid_ntp_check branch from 5239bae to af2690a Compare July 18, 2023 08:22
@rogercoll rogercoll marked this pull request as ready for review July 19, 2023 08:18
@rogercoll rogercoll requested a review from a team July 19, 2023 08:18
p.offset = total / time.Duration(len(offsets))
p.updatedAt = p.now()
offsetSeconds := (total / time.Duration(len(offsets))).Seconds()
p.offset = &offsetSeconds
Copy link
Contributor

@rubenruizdegauna rubenruizdegauna Jul 19, 2023

Choose a reason for hiding this comment

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

from what I understood, p.offset is not needed anymore, isn't it? (nor offsetSeconds)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Totally right, fixed in 6184148

Thanks!

@rogercoll rogercoll changed the title NR-126476: move Offset interval call responsability to caller NR-126476: update NTP internval check on error Jul 19, 2023
@rogercoll rogercoll changed the title NR-126476: update NTP internval check on error NR-126476: update NTP interval check on error Jul 19, 2023
Copy link
Contributor

@rubenruizdegauna rubenruizdegauna left a comment

Choose a reason for hiding this comment

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

LGTM 🔥

@rogercoll rogercoll merged commit 9ddf7b1 into master Jul 19, 2023
@rogercoll rogercoll deleted the NR-126476_avoid_ntp_check branch July 19, 2023 10:25
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