[Git][NTPsec/ntpsec][master] Address GitLab issue #144: kernel status flags should be suppressed
Eric S. Raymond
gitlab at mg.gitlab.com
Tue Nov 8 10:32:38 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
5877d463 by Eric S. Raymond at 2016-11-08T05:32:20-05:00
Address GitLab issue #144: kernel status flags should be suppressed
- - - - -
1 changed file:
- ntpq/ntpq
Changes:
=====================================
ntpq/ntpq
=====================================
--- a/ntpq/ntpq
+++ b/ntpq/ntpq
@@ -524,7 +524,10 @@ usage: timeout [ msec ]
if self.showhostnames:
value = canonicalize_dns(value)
self.say("%s %s\n" % (legend, value))
- elif fmt in (NTP_STR, NTP_UINT, NTP_INT):
+ elif fmt == NTP_STR:
+ if value:
+ self.say("%s %s\n" % (legend, value))
+ elif fmt in (NTP_UINT, NTP_INT):
self.say("%s %s\n" % (legend, value))
elif fmt == NTP_LFP:
self.say("%s %s\n" % (legend, prettydate(value)))
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/5877d463b16fe3a852029a1edf22df1638abbc29
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161108/60575d18/attachment.html>
More information about the vc
mailing list