]> git.mxchange.org Git - quix0rs-apt-p2p.git/blobdiff - apt_p2p_Khashmir/util.py
Move the bucket manipulation into the KBucket class.
[quix0rs-apt-p2p.git] / apt_p2p_Khashmir / util.py
index 966dc7246421ecd962e9e2273b95cdb0a8eb7e27..dba9d8b82bebdf4e233e50a7fc8ee03b723db2b3 100644 (file)
@@ -12,7 +12,7 @@ def bucket_stats(l):
     def count(buckets):
         c = 0
         for bucket in buckets:
-            c = c + len(bucket.l)
+            c = c + bucket.len()
         return c
     for node in l:
         c = count(node.table.buckets)