-
Notifications
You must be signed in to change notification settings - Fork 135
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
Conversation
37059ac
to
5239bae
Compare
5239bae
to
af2690a
Compare
pkg/metrics/ntp.go
Outdated
p.offset = total / time.Duration(len(offsets)) | ||
p.updatedAt = p.now() | ||
offsetSeconds := (total / time.Duration(len(offsets))).Seconds() | ||
p.offset = &offsetSeconds |
There was a problem hiding this comment.
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
)
There was a problem hiding this comment.
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!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🔥
No description provided.