-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLAT-15707] Updated ntpq parsing to assume milliseconds, not seconds
Summary: ntpq -p offset returns the offset in milliseconds, not in seconds, updated the parsing as needed. In addition, improved the awk check to look for the line starting with '*' as that is the active server. If there is no active server, return error Test Plan: deployed a universe and used ntp. Validated health checks passed with no time drift and failed with a drift Reviewers: muthu, nsingh Reviewed By: muthu Subscribers: yugaware Differential Revision: https://phorge.dev.yugabyte.com/D39150
- Loading branch information
Showing
2 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters