[Git][NTPsec/ntpsec][master] Fixed cropped display width when displaying units.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Apr 6 00:19:24 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
e5807e2b by Ian Bruene at 2017-04-06T00:16:50+00:00
Fixed cropped display width when displaying units.

Bug mostly effecteed dispersion.

- - - - -


1 changed file:

- ntpclients/ntpmon


Changes:

=====================================
ntpclients/ntpmon
=====================================
--- a/ntpclients/ntpmon
+++ b/ntpclients/ntpmon
@@ -91,13 +91,15 @@ def peer_detail(variables, showunits=False):
                 vcopy[name] = ntp.util.unitformatter(vcopy[name],
                                                      ntp.util.UNITS_SEC,
                                                      ntp.util.UNIT_MS,
-                                                     strip=True)
+                                                     strip=True,
+                                                     width=None)
         for name in ntp.util.PPM_VARS:
             if name in vcopy:
                 vcopy[name] = ntp.util.unitformatter(vcopy[name],
                                                      ntp.util.UNIT_PPM,
                                                      ntp.util.UNITS_PPX,
-                                                     strip=True)
+                                                     strip=True,
+                                                     width=None)
         vcopy['filtdelay'] = ntp.util.filtcooker(vcopy['filtdelay'])
         vcopy['filtoffset'] = ntp.util.filtcooker(vcopy['filtoffset'])
         vcopy['filtdisp'] = ntp.util.filtcooker(vcopy['filtdisp'])



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/e5807e2b967eaf9e51bba6eb49aa423d3edcffe7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170406/c396e9eb/attachment.html>


More information about the vc mailing list