[Git][NTPsec/ntpsec][master] Fixed ntpq ifstat bug #280

Eric S. Raymond gitlab at mg.gitlab.com
Wed May 3 20:43:35 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
56253d57 by Ian Bruene at 2017-05-03T15:35:39-05:00
Fixed ntpq ifstat bug #280

ifstat field 'num_mcast' was removed, ntpq still expected it to exist.

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -1013,12 +1013,11 @@ class IfstatsSummary:
 
     def summary(self, i, variables):
         try:
-            s = ("%3u %-24.24s %c %4x %3d %2d %6d %6d %6d %5d %8d\n    %s\n"
+            s = ("%3u %-24.24s %c %4x %3d %6d %6d %6d %5d %8d\n    %s\n"
                  % (i, variables['name'],
                     '.' if variables['en'] else 'D',
                      variables.get('flags', '?'),
                      variables.get('tl', '?'),
-                     variables.get('mc', '?'),
                      variables.get('rx', '?'),
                      variables.get('tx', '?'),
                      variables.get('txerr', '?'),



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/56253d572042449436c65de2399fc0a9805890e0

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/56253d572042449436c65de2399fc0a9805890e0
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/20170503/7bb3efd1/attachment.html>


More information about the vc mailing list