[Git][NTPsec/ntpsec][master] Fix pyntpq collect_display table spacing to match ntpq

Eric S. Raymond gitlab at mg.gitlab.com
Wed Oct 26 04:19:20 UTC 2016


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


Commits:
8a94fd65 by Matt Selsky at 2016-10-25T23:48:04-04:00
Fix pyntpq collect_display table spacing to match ntpq

- - - - -


1 changed file:

- ntpq/pyntpq


Changes:

=====================================
ntpq/pyntpq
=====================================
--- a/ntpq/pyntpq
+++ b/ntpq/pyntpq
@@ -649,11 +649,11 @@ usage: timeout [ msec ]
                 continue
             value = queried[name]
             if fmt in (NTP_STR, NTP_UINT, NTP_INT, NTP_ADD, NTP_ADP):
-                self.say("%s %s\n" % (legend, value))
+                self.say("%s  %s\n" % (legend, value))
             elif fmt == NTP_LFP:
-                self.say("%s %s\n" % (legend, prettydate(value)))
+                self.say("%s  %s\n" % (legend, prettydate(value)))
             elif fmt in (NTP_2BIT, NTP_MODE):
-                self.say("%s %s\n" % (legend, bin(value)[2:]))
+                self.say("%s  %s\n" % (legend, bin(value)[2:]))
             else:
                 self.warn("unexpected vc type %s for %s, value %s\n" % (fmt, name, value))
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/8a94fd657483cd4e4b1e1280fa4a81f3b80f3d3e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161026/5ef9748f/attachment.html>


More information about the vc mailing list