[Git][NTPsec/ntpsec][master] Fix #843 "ntpwait -n 1 always exits with failure."

Gary E. Miller (@garyedmundsmiller) gitlab at mg.gitlab.com
Mon Apr 7 20:06:01 UTC 2025



Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
bc16fc54 by James Browning at 2025-04-07T13:02:07-07:00
Fix #843 "ntpwait -n 1 always exits with failure."

- - - - -


1 changed file:

- ntpclients/ntpwait.py


Changes:

=====================================
ntpclients/ntpwait.py
=====================================
@@ -89,7 +89,7 @@ if __name__ == "__main__":
     if verbose:
         sys.stdout.write("Waiting for ntpd to synchronize...  ")
 
-    for i in range(1, tries):
+    for i in range(tries):
         session = ntp.packet.ControlSession()
         # session.debug = 4
         if not session.openhost("localhost"):



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/bc16fc54ba8e5cd067254e7d05f15366414b324f

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/bc16fc54ba8e5cd067254e7d05f15366414b324f
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20250407/04db8563/attachment.htm>


More information about the vc mailing list