[Git][NTPsec/ntpsec][master] Also show percentages on Jitter plots.

Gary E. Miller gitlab at mg.gitlab.com
Sun Sep 11 02:37:17 UTC 2016


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


Commits:
3842a210 by Gary E. Miller at 2016-09-10T19:36:51-07:00
Also show percentages on Jitter plots.

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -277,7 +277,8 @@ plot \
             else:
                 unit = "ns"
 
-        percs.update({k: round( v * multiplier, rnd) for k, v in list(percs.items())})
+        percs.update({k: round( v * multiplier, rnd) \
+                     for k, v in list(percs.items())})
         ninetynine  = percs[99]
         ninetyfive  = percs[95]
         five        = percs[5]
@@ -374,15 +375,13 @@ plot \
             five        = percs[5]
             one         = percs[1]
 
-            if "offset" == type:
-                # fld == 4
-
-                nf_m_f     = ninetyfive - five
-                nn_m_o     = ninetynine - one
-                percentages = " %(fifty)s title '50th percentile', " \
-                               % locals()
+            # show percentages
+            nf_m_f     = ninetyfive - five
+            nn_m_o     = ninetynine - one
+            percentages = " %(fifty)s title '50th percentile', " \
+                           % locals()
 
-                labels = """\
+            labels = """\
 set label 1 "99%% = %(ninetynine)s %(unit)s" at graph 0.01,0.95 left front
 set label 2 "95%% = %(ninetyfive)s %(unit)s" at graph 0.01,0.90 left front
 set label 3 "50%% = %(fifty)s %(unit)s" at graph 0.01,0.85 left front
@@ -392,6 +391,8 @@ set label 6 "95%% - 5%% = %(nf_m_f)s %(unit)s" at graph 0.01,0.70 left front
 set label 7 "99%% - 1%% = %(nn_m_o)s %(unit)s" at graph 0.01,0.65 left front
 """ % locals()
 
+            if "offset" == type:
+
                 rtt = 1
                 # don't do rtt for reclocks
                 if "127.127." == peerlist[0][:8]:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/3842a21044d52d86b1d5c601b27e5e0904491d41
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160911/95562f41/attachment.html>


More information about the vc mailing list