diff options
author | erdgeist <> | 2006-12-15 23:53:24 +0000 |
---|---|---|
committer | erdgeist <> | 2006-12-15 23:53:24 +0000 |
commit | 808e37056660b9f2601559f8b7a70b7416519827 (patch) | |
tree | 89817653e5b2c78b0b86bcec149986d86607db4d /trackerlogic.c | |
parent | 1d5f915940f115af21b100c5ca0ee4a0a6ff828b (diff) |
random
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 7b3c5db..ece3261 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -210,7 +210,7 @@ size_t return_peers_for_torrent( ot_torrent *torrent, unsigned long amount, char | |||
210 | 210 | ||
211 | // In some rare occasions random gets the last peer a round to early | 211 | // In some rare occasions random gets the last peer a round to early |
212 | // correct that and return last peer twice | 212 | // correct that and return last peer twice |
213 | if( wert >= peer_count ) { wert--; pool_offset--; } | 213 | // if( wert >= peer_count ) { wert--; pool_offset--; } |
214 | 214 | ||
215 | while( pool_offset >= torrent->peer_list->peers[pool_index].size ) { | 215 | while( pool_offset >= torrent->peer_list->peers[pool_index].size ) { |
216 | pool_offset -= torrent->peer_list->peers[pool_index].size; | 216 | pool_offset -= torrent->peer_list->peers[pool_index].size; |