[Git][NTPsec/ntpsec][master] 2 commits: Fix typo
Eric S. Raymond
gitlab at mg.gitlab.com
Fri Dec 23 15:58:36 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
1ce89ac5 by Matt Selsky at 2016-12-23T10:14:26-05:00
Fix typo
- - - - -
29310d2d by Matt Selsky at 2016-12-23T10:14:26-05:00
NTP_MAXAGE is never used
- - - - -
1 changed file:
- ntpclients/ntpdig
Changes:
=====================================
ntpclients/ntpdig
=====================================
--- a/ntpclients/ntpdig
+++ b/ntpclients/ntpdig
@@ -122,7 +122,6 @@ def clock_select(packets):
"Select the pick-of-the-litter clock from the samples we've got."
# This is a slightly simplified version of the filter ntpdate used
NTP_INFIN = 15 # max stratum, infinity a la Bellman-Ford
- NTP_MAXAGE = 86400 # one day in seconds
# This first chunk of code is supposed to go through all
# servers we know about to find the servers that
@@ -389,7 +388,7 @@ if __name__ == '__main__':
adjusted = step and (not slew or (slew and (abs(offset) > steplimit)))
report(pkt, json)
# If we can step but we cannot slew, then step.
- # If we can step or slew and and |offset| > steplimit, then step.
+ # If we can step or slew and |offset| > steplimit, then step.
rc = True
offset = pkt.adjust()
ntp.ntpc.setprogname("ntpdig")
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/eec1cec66df1cff0b7e173cdf1cd3c458bd4bf1f...29310d2dff44f3c31a4d2857af042b44662577d1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161223/6867bce3/attachment.html>
More information about the vc
mailing list