projects
/
quix0rs-apt-p2p.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23cd4a6
)
return K nodes and not K-1
author
burris
<burris>
Sun, 22 Sep 2002 07:07:06 +0000
(07:07 +0000)
committer
burris
<burris>
Sun, 22 Sep 2002 07:07:06 +0000
(07:07 +0000)
ktable.py
patch
|
blob
|
history
diff --git
a/ktable.py
b/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