summaryrefslogtreecommitdiff
path: root/ot_clean.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_clean.c')
-rw-r--r--ot_clean.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot_clean.c b/ot_clean.c
index 3b494f4..739e785 100644
--- a/ot_clean.c
+++ b/ot_clean.c
@@ -45,7 +45,7 @@ static ssize_t clean_single_bucket( ot_peer *peers, size_t peer_count, size_t pe
45 (*removed_seeders)++; 45 (*removed_seeders)++;
46 } 46 }
47 47
48 return peers - insert_point; 48 return (peers - insert_point) / peer_size;
49} 49}
50 50
51int clean_single_peer_list( ot_peerlist *peer_list, size_t peer_size ) { 51int clean_single_peer_list( ot_peerlist *peer_list, size_t peer_size ) {