diff options
| author | erdgeist <> | 2007-07-22 18:23:00 +0000 |
|---|---|---|
| committer | erdgeist <> | 2007-07-22 18:23:00 +0000 |
| commit | 51e4b179ab389b0665f4d80a1f56459fa9e37f00 (patch) | |
| tree | 47cf41c1cd86a04df146b9e065e84b515ee6a869 | |
| parent | d49c1d5960768ca0e29835acb10d6eefd316afb8 (diff) | |
off by -1... or so, strange error class
| -rw-r--r-- | trackerlogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 9294ec4..8308205 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
| @@ -663,7 +663,7 @@ size_t return_stats_for_slash24s( char *reply, size_t amount, ot_dword thresh ) | |||
| 663 | } | 663 | } |
| 664 | 664 | ||
| 665 | for( i=0; i<0x1000000; ++i ) | 665 | for( i=0; i<0x1000000; ++i ) |
| 666 | if( count[i] >= thresh ) { | 666 | if( count[i] > thresh ) { |
| 667 | /* This subnet seems to announce more torrents than the last in our list */ | 667 | /* This subnet seems to announce more torrents than the last in our list */ |
| 668 | int insert_pos = amount - 1; | 668 | int insert_pos = amount - 1; |
| 669 | while( ( insert_pos >= 0 ) && ( count[i] > slash24s[ 2 * insert_pos ] ) ) | 669 | while( ( insert_pos >= 0 ) && ( count[i] > slash24s[ 2 * insert_pos ] ) ) |
