]> git.mxchange.org Git - quix0rs-apt-p2p.git/commitdiff
return K nodes and not K-1
authorburris <burris>
Sun, 22 Sep 2002 07:07:06 +0000 (07:07 +0000)
committerburris <burris>
Sun, 22 Sep 2002 07:07:06 +0000 (07:07 +0000)
ktable.py

index 7757829b1c77d0da0306b78eba30193545bbb303..f1c3b6ac50fa5856d2cdc96dd8ab725c0756df8d 100644 (file)
--- a/ktable.py
+++ b/ktable.py
@@ -82,7 +82,7 @@ class KTable:
                min = min - 1
                max = max + 1
            nodes.sort(sort)
-           return nodes[:K-1]
+           return nodes[:K]
 
     def _splitBucket(self, a):
        diff = (a.max - a.min) / 2