[Git][NTPsec/ntpsec][master] ntpviz: change ppt to ‰ (millage symbol).
Gary E. Miller
gitlab at mg.gitlab.com
Wed Apr 26 02:51:55 UTC 2017
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
751a2442 by Gary E. Miller at 2017-04-25T19:49:44-07:00
ntpviz: change ppt to ‰ (millage symbol).
Seems some people don't use ppt to avoid confusion with parts per
trillion.
- - - - -
2 changed files:
- ntpclients/ntpviz
- pylib/util.py
Changes:
=====================================
ntpclients/ntpviz
=====================================
--- a/ntpclients/ntpviz
+++ b/ntpclients/ntpviz
@@ -1702,9 +1702,9 @@ number of values.</dd>
<dd>Ratio between two values. These following are all the same:
1 ppm, one in one million, 1/1,000,000, 0.000,001, and 0.000,1%</dd>
-<dt>ppt, parts per thousand:</dt>
+<dt>‰, parts per thousand:</dt>
<dd>Ratio between two values. These following are all the same:
- 1 ppt, one in one thousand, 1/1,000, 0.001, and 0.1%</dd>
+ 1 ‰. one in one thousand, 1/1,000, 0.001, and 0.1%</dd>
<dt>refclock:</dt>
<dd>Reference clock, a local GPS module or other local source of time.</dd>
=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -33,15 +33,15 @@ OLD_CTL_PST_SEL_SYSPEER = 3
# Units for formatting
UNIT_NS = "ns"
-UNIT_US = u"\u03bcs"
+UNIT_US = u"µs"
UNIT_MS = "ms"
UNIT_S = "s"
UNIT_KS = "ks"
UNITS_SEC = (UNIT_NS, UNIT_US, UNIT_MS, UNIT_S, UNIT_KS)
-UNIT_PPT = "ppt"
-UNIT_PPB = "ppb"
-UNIT_PPM = "ppm"
-UNIT_PPK = "ppk"
+UNIT_PPT = u"‰" # parts per thousand
+UNIT_PPB = "ppb" # parts per billion
+UNIT_PPM = "ppm" # parts per million
+UNIT_PPK = "ppk" # parts per ??
UNITS_PPX = (UNIT_PPT, UNIT_PPB, UNIT_PPM, UNIT_PPK)
unitgroups = (UNITS_SEC, UNITS_PPX)
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/751a2442c046e4eba0a340782a2aa2346e327326
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/751a2442c046e4eba0a340782a2aa2346e327326
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170426/0030e3c0/attachment.html>
More information about the vc
mailing list