From 7628ed7201a50146b550df1c5ecb3866eb3036c8 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Fri, 20 Feb 2009 12:31:55 +0000 Subject: [PATCH] Reset delta_torrentcount to zero on each pass --- trackerlogic.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trackerlogic.c b/trackerlogic.c index 3123423..e7252bf 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -269,11 +269,11 @@ size_t return_udp_scrape_for_torrent( ot_hash hash, char *reply ) { size_t return_tcp_scrape_for_torrent( ot_hash *hash_list, int amount, char *reply ) { char *r = reply; int exactmatch, i; - int delta_torrentcount = 0; r += sprintf( r, "d5:filesd" ); for( i=0; idata, torrents_list->size, sizeof( ot_torrent ), OT_HASH_COMPARE_SIZE, &exactmatch ); @@ -383,4 +383,4 @@ void trackerlogic_deinit( void ) { mutex_deinit( ); } -const char *g_version_trackerlogic_c = "$Source: /home/cvsroot/opentracker/trackerlogic.c,v $: $Revision: 1.125 $\n"; +const char *g_version_trackerlogic_c = "$Source: /home/cvsroot/opentracker/trackerlogic.c,v $: $Revision: 1.126 $\n";