[Git][NTPsec/ntpsec][master] Peers display with raw address no longer forces 80 chars on wide terminals

Gary E. Miller gitlab at mg.gitlab.com
Tue May 16 01:24:27 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
1751e893 by Ian Bruene at 2017-05-15T20:19:36-05:00
Peers display with raw address no longer forces 80 chars on wide terminals

- - - - -


1 changed file:

- ntpclients/ntpq


Changes:

=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -288,16 +288,12 @@ usage: help [ command ]
     def __dopeers(self, showall, mode):
         if not self.__dogetassoc():
             return
-        if self.showhostnames:
-            termwidth = interpreter.termwidth
-        else:
-            termwidth = None    # Default width
         report = ntp.util.PeerSummary(mode,
                                       self.pktversion,
                                       self.showhostnames,
                                       self.wideremote,
                                       self.showunits,
-                                      termwidth=termwidth,
+                                      termwidth=interpreter.termwidth,
                                       debug=interpreter.debug)
         try:
             maxhostlen = 0



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1751e893aeafd00312efe8cc8e8a64e30a55a274

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1751e893aeafd00312efe8cc8e8a64e30a55a274
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/20170516/34f4a1ac/attachment.html>


More information about the vc mailing list