[Git][NTPsec/ntpsec][master] ntpq now attempts to display srcadr if talking to NTPclassic
Ian Bruene
gitlab at mg.gitlab.com
Thu Jun 15 16:35:59 UTC 2017
Ian Bruene pushed to branch master at NTPsec / ntpsec
Commits:
75a275cd by Ian Bruene at 2017-06-15T11:28:23-05:00
ntpq now attempts to display srcadr if talking to NTPclassic
- - - - -
1 changed file:
- pylib/util.py
Changes:
=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -846,7 +846,10 @@ class PeerSummary:
else:
clock_name = srchost
if clock_name is None:
- clock_name = ""
+ if srcadr:
+ clock_name = srcadr
+ else:
+ clock_name = ""
if self.wideremote and len(clock_name) > self.namewidth:
line += ("%c%s\n" % (c, clock_name))
line += (" " * (self.namewidth + 2))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/75a275cd5e5d0562c95fb083cb391f3adb585564
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/75a275cd5e5d0562c95fb083cb391f3adb585564
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/20170615/d7f8180a/attachment.html>
More information about the vc
mailing list