[Git][NTPsec/ntpsec][master] Changed ifstats en flag to be more robust

Gary E. Miller gitlab at mg.gitlab.com
Thu May 11 01:08:56 UTC 2017


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


Commits:
c68b3bf3 by Ian Bruene at 2017-05-10T20:03:37-05:00
Changed ifstats en flag to be more robust

- - - - -


1 changed file:

- pylib/util.py


Changes:

=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -1030,9 +1030,10 @@ class IfstatsSummary:
                 fmt = self.fields[name] % value
             formatted[name] = fmt
         try:
+            enFlag = '.' if variables.get('en', False) else 'D'
             s = ("%3u %-24.24s %c %4s %3s %6s %6s %6s %5s %8s\n    %s\n"
                  % (i, formatted['name'],
-                    '.' if variables['en'] else 'D',
+                    enFlag,
                     formatted['flags'],
                     formatted['tl'],
                     formatted['rx'],



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

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/c68b3bf368274bb0f9ef6e1e6da40d7da519c01c
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/20170511/3566dd27/attachment.html>


More information about the vc mailing list