[Git][NTPsec/ntpsec][master] Fix bug in ntpq-peers
Hal Murray
gitlab at mg.gitlab.com
Wed Dec 28 05:49:35 UTC 2016
Hal Murray pushed to branch master at NTPsec / ntpsec
Commits:
2917aaf5 by Hal Murray at 2016-12-27T21:48:21-08:00
Fix bug in ntpq-peers
hostnames turned into lots of spaces
- - - - -
1 changed file:
- ntpclients/ntpq
Changes:
=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -158,7 +158,7 @@ class Ntpq(cmd.Cmd):
self.pktversion = ntp.magic.NTP_OLDVERSION + 1
self.uservars = ntp.util.OrderedDict()
self.ai_family = socket.AF_UNSPEC
- self.termwidth = ntp.util.termsize()[1]
+ self.termwidth = ntp.util.termsize()[0]
def emptyline(self):
"Called when an empty line is entered in response to the prompt."
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/2917aaf5f99793785b32f0262ace41923df2a14e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161228/08d33bd6/attachment.html>
More information about the vc
mailing list