mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-03 19:33:23 +08:00 
			
		
		
		
	Reset delta_torrentcount to zero on each pass
This commit is contained in:
		
							parent
							
								
									b2bd9f7d91
								
							
						
					
					
						commit
						02078aba27
					
				@ -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; i<amount; ++i ) {
 | 
			
		||||
    int          delta_torrentcount = 0;
 | 
			
		||||
    ot_hash     *hash = hash_list + i;
 | 
			
		||||
    ot_vector   *torrents_list = mutex_bucket_lock_by_hash( *hash );
 | 
			
		||||
    ot_torrent  *torrent = binary_search( hash, torrents_list->data, torrents_list->size, sizeof( ot_torrent ), OT_HASH_COMPARE_SIZE, &exactmatch );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user