diff options
Diffstat (limited to 'ot_clean.c')
-rw-r--r-- | ot_clean.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 | ||
51 | int clean_single_peer_list( ot_peerlist *peer_list, size_t peer_size ) { | 51 | int clean_single_peer_list( ot_peerlist *peer_list, size_t peer_size ) { |