mirror of
				git://erdgeist.org/opentracker
				synced 2025-11-04 11:53:22 +08:00 
			
		
		
		
	Forgot to take into account, that there are OT_POOL_COUNT debuggable pools in one torrent. Fixed.
This commit is contained in:
		
							parent
							
								
									e7f6908fb2
								
							
						
					
					
						commit
						9882d74b7e
					
				@ -339,7 +339,7 @@ size_t return_memstat_for_tracker( char **reply ) {
 | 
				
			|||||||
    torrent_count += torrents_list->size;
 | 
					    torrent_count += torrents_list->size;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  if( !( r = *reply = malloc( 256*32 + (43+3+30)*torrent_count ) ) ) return 0;
 | 
					  if( !( r = *reply = malloc( 256*32 + (43+OT_POOLS_COUNT*32)*torrent_count ) ) ) return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  for( i=0; i<256; ++i )
 | 
					  for( i=0; i<256; ++i )
 | 
				
			||||||
    r += sprintf( r, "%02X: %08X %08X\n", i, (ot_dword)all_torrents[i].size, (ot_dword)all_torrents[i].space );
 | 
					    r += sprintf( r, "%02X: %08X %08X\n", i, (ot_dword)all_torrents[i].size, (ot_dword)all_torrents[i].space );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user