[Git][NTPsec/ntpsec][master] Properly align index field in ntpq to match C version

Eric S. Raymond gitlab at mg.gitlab.com
Tue Oct 25 16:21:38 UTC 2016


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


Commits:
90645319 by Matt Selsky at 2016-10-25T10:34:53-04:00
Properly align index field in ntpq to match C version

- - - - -


1 changed file:

- ntpq/pyntpq


Changes:

=====================================
ntpq/pyntpq
=====================================
--- a/ntpq/pyntpq
+++ b/ntpq/pyntpq
@@ -318,11 +318,11 @@ usage: help [ command ]
                 }
             last_event = event_dict.get(PEER_EVENT|event, "")
             display = \
-                     "%-3s %5u  %04x   %3.3s  %4s  %4.4s %9.9s %11s %2lu" % \
+                     "%3d %5u  %04x   %3.3s  %4s  %4.4s %9.9s %11s %2lu" % \
                      (i + 1, peer.associd,
                      peer.status, conf, reach, auth,
                      condition, last_event, event_count)
-            self.say(display.strip() + "\n")
+            self.say(display + "\n")
 
     @staticmethod
     def prettyinterval(diff):



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/90645319dca68fd7f3c1946a568eca08d3faaf20
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161025/f019cec8/attachment.html>


More information about the vc mailing list