[Git][NTPsec/ntpsec][master] Mitigation of ntpmon's screaming-counter problem.

Eric S. Raymond gitlab at mg.gitlab.com
Sat Dec 17 12:53:54 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
ebc1c5f7 by Eric S. Raymond at 2016-12-17T07:50:28-05:00
Mitigation of ntpmon's screaming-counter problem.

- - - - -


1 changed file:

- ntpclients/ntpmon


Changes:

=====================================
ntpclients/ntpmon
=====================================
--- a/ntpclients/ntpmon
+++ b/ntpclients/ntpmon
@@ -186,7 +186,7 @@ if __name__ == '__main__':
                     stdscr.refresh()
                     # Nyquist-interval sampling - half the smallest poll interval
                     # seen in the last cycle, rounded up to 1 second.
-                    stdscr.timeout(int((min(hpolls) / 2) + 0.5))
+                    stdscr.timeout(max(int(min(hpolls) / 2), 1))
                 try:
                     helpmode = False
                     key = stdscr.getkey()



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ebc1c5f77ecbf57a70b8a97a7ff57666fbdf753c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161217/0ed245a1/attachment.html>


More information about the vc mailing list