[Git][NTPsec/ntpsec][master] 2 commits: Add ppt (parts per thousanda scale) to RMS Frequency Jitter

Gary E. Miller gitlab at mg.gitlab.com
Thu Sep 8 04:07:08 UTC 2016


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


Commits:
db4ca7c7 by Gary E. Miller at 2016-09-07T21:02:37-07:00
Add ppt (parts per thousanda scale) to RMS Frequency Jitter

- - - - -
0026bff8 by Gary E. Miller at 2016-09-07T21:06:27-07:00
Fix the flip condition of uSec Time/Freq Offsets

- - - - -


1 changed file:

- ntpstats/ntpviz


Changes:

=====================================
ntpstats/ntpviz
=====================================
--- a/ntpstats/ntpviz
+++ b/ntpstats/ntpviz
@@ -123,7 +123,7 @@ set rmargin 12
         ninetynine, one = \
                     self.percentiles( (99, 1), values)
 
-        if 1 > ninetynine and -1 < one:
+        if 1e-6 > ninetynine and -1e-6 < one:
             # go to nanosec
             unit = "ns"
             multiplier = 1e9
@@ -237,10 +237,13 @@ plot \
         ninetynine, ninetyfive, five, one = \
                     self.percentiles( (99,95, 5, 1), values)
 
-        if 1e-3 <= ninetynine and -1e-3 >= one and not freq:
+        if 1e-3 <= ninetynine or -1e-3 >= one:
             # go to millisec
-            unit = "ms"
             multiplier = 1e3
+            if freq:
+                unit = "ppt"
+            else:
+                unit = "ms"
         else:
             if 1e-6 > ninetynine and -1e-6 < one:
                 # go to nanosec, or ppb
@@ -831,6 +834,10 @@ system clock frequency (usually in parts per million, ppm)</dd>
 <dd>Ratio between two values. These following are all the same:
     1 ppm, one in one million, 1/1000000, 0.000001, and 0.0001%</dd>
 
+<dt>ppt, parts per thousand:</dt>
+<dd>Ratio between two values. These following are all the same:
+    1 ppt, one in one thousand, 1/1000, 0.001, and 0.1%</dd>
+
 <dt>refclock:</dt>
 <dd>Reference clock, a local GPS module or other local source of time.</dd>
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/compare/48bcdd742056397e29e2fc698ee48513037f9170...0026bff8fe1f65c7089fc24214dac0df0a349d05
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160908/52df554f/attachment.html>


More information about the vc mailing list