-
Notifications
You must be signed in to change notification settings - Fork 81
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
Expose NTP stratum #3
Conversation
@beevik, do you have any concerns about this? |
@@ -26,6 +26,7 @@ const ( | |||
broadcast | |||
controlMessage | |||
reservedPrivate | |||
maxStratum uint8 = 16 |
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.
Please move this to another const declaration scope. I prefer not to mix it in with the mode constants.
I've updated the commit to address your comments. |
i := &Response{ | ||
m.Stratum, | ||
m.ReceiveTime.UTC().Local(), | ||
} |
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.
sorry, one other minor change request. Could you rename this variable from "i" to "r" or "resp"? That'd be a bit more idiomatic.
Thanks.
Sure, updated. |
Thanks for the pull request! |
This exposes NTP stratum of the remote server and also allows returning other information as part of the
Response
struct.