From: burris Date: Sun, 22 Sep 2002 07:07:06 +0000 (+0000) Subject: return K nodes and not K-1 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=2f1a76beca50cc9600df404c927753b11f94c87e;p=quix0rs-apt-p2p.git return K nodes and not K-1 --- diff --git a/ktable.py b/ktable.py index 7757829..f1c3b6a 100644 --- 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