[Git][NTPsec/ntpsec][master] Fix mrulist sort=avgint
Eric S. Raymond
gitlab at mg.gitlab.com
Sat Nov 26 17:28:56 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
ca643ac7 by Matt Selsky at 2016-11-26T11:08:44-05:00
Fix mrulist sort=avgint
Use self, not e, since e is not in scope here
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -643,7 +643,7 @@ class MRUEntry:
self.mv = None # mode and version
self.rs = None # restriction mask (RES_* bits)
def avgint(self):
- return (e.last - e.first) / e.ct
+ return (self.last - self.first) / self.ct
def __repr__(self):
return "<MRUentry: " + repr(self.__dict__)[1:-1] + ">"
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/ca643ac749f8f042a9eb51f5ccb57c8bd9f5b845
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161126/0096cc94/attachment.html>
More information about the vc
mailing list