[Git][NTPsec/ntpsec][master] @nd try Fix Histogram units, us/ns for RMS Jitter

Gary E. Miller gitlab at mg.gitlab.com
Thu Sep 8 02:51:18 UTC 2016


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


Commits:
69d07c07 by Gary E. Miller at 2016-09-07T19:50:54-07:00
@nd try Fix Histogram units, us/ns for RMS Jitter

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -233,19 +233,17 @@ plot \
         ninetynine, ninetyfive, five, one = \
                     self.percentiles( (99,95, 5, 1), values)
 
-        if 1e3 <= ninetynine and -1e3 >= one:
+        if 1e-3 <= ninetynine and -1e-3 >= one:
             # go to millisec
             unit = "ms"
             multiplier = 1e3
         else:
-            if 1e6 > ninetynine and -1e6 < one:
+            if 1e-6 > ninetynine and -1e-6 < one:
                 # go to nanosec
                 unit = "ns"
                 multiplier = 1e9
                 rnd = 0
 
-        sys.stderr.write( " 99 = %(ninetynine)s, 1 = %(one)s \n" % locals() )
-
         ninetynine  = round( ninetynine * multiplier, rnd)
         ninetyfive  = round( ninetyfive * multiplier, rnd)
         five        = round(       five * multiplier, rnd)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/69d07c078d1666d70bd6f112dcaa75ff21eb1495
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160908/591946e0/attachment.html>


More information about the vc mailing list