[Git][NTPsec/ntpsec][master] ntpq peers name alignment fix

Richard Laager gitlab at mg.gitlab.com
Sat Feb 22 23:25:58 UTC 2020



Richard Laager pushed to branch master at NTPsec / ntpsec


Commits:
872d52cd by James Browning at 2020-02-22T23:15:09+00:00
ntpq peers name alignment fix


- - - - -


1 changed file:

- ntpclients/ntpq.py


Changes:

=====================================
ntpclients/ntpq.py
=====================================
@@ -257,7 +257,8 @@ usage: help [ command ]
                     continue
                 if len(self.chosts) > 1:
                     self.say(ntp.util.PeerSummary.high_truncate(
-                             self.session.hostname, maxhostlen) + " ")
+                             self.session.hostname, maxhostlen) + " " *
+                             (maxhostlen + 1 - len(self.session.hostname)))
                 self.say(report.summary(self.session.rstatus,
                                         variables, peer.associd))
         except KeyboardInterrupt:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/872d52cd64a931a6b2b8c9bf7f8f3de25ddf96e0

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/872d52cd64a931a6b2b8c9bf7f8f3de25ddf96e0
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/20200222/75a32fb0/attachment.htm>


More information about the vc mailing list