[Git][NTPsec/ntpsec][master] ntpviz: draw lines bewteen points up to 2,200 secs apart.

Gary E. Miller gitlab at mg.gitlab.com
Fri Dec 9 20:48:15 UTC 2016


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


Commits:
2ef4717a by Gary E. Miller at 2016-12-09T12:45:54-08:00
ntpviz: draw lines bewteen points up to 2,200 secs apart.

This allows for ntpd using poll=1024 secs, and some slop of
unknown origin.  rlaager reports delays in data up to 2168 secs.

- - - - -


1 changed file:

- ntpclients/ntpviz


Changes:

=====================================
ntpclients/ntpviz
=====================================
--- a/ntpclients/ntpviz
+++ b/ntpclients/ntpviz
@@ -350,7 +350,8 @@ set rmargin 10
         if item2:
             for row in rows:
                 try:
-                    if 1024000 < row[0] - last_time:
+                    if 2200000 < row[0] - last_time:
+                        # more than 2,200 seconds between points
                         # data loss, add a break in the plot line
                         plot_data += '\n'
                     # fields: time, fld, and rtt
@@ -361,7 +362,8 @@ set rmargin 10
         else:
             for row in rows:
                 try:
-                    if 1024000 < row[0] - last_time:
+                    if 2200000 < row[0] - last_time:
+                        # more than 2,200 seconds between points
                         # data loss, add a break in the plot line
                         plot_data += '\n'
                     # fields: time, fld



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2ef4717a27b024ca25bfb72babb493ea97092617
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161209/39e1ee4d/attachment.html>


More information about the vc mailing list