From e534db03c6877f8ac0559f63840e9a00e9bd43bf Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 4 Oct 2008 05:40:51 +0000 Subject: added live sync code added a config file parser added tracker id changed WANT_CLOSED_TRACKER and WANT_BLACKLIST into WANT_ACCESS_WHITE and WANT_ACCESS_BLACK changed WANT_TRACKER_SYNC to WANT_SYNC_BATCH and added WANT_SYNC_LIVE added an option to switch off fullscrapes cleaned up many internal hardcoded values, like PROTO_FLAG, --- ot_clean.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ot_clean.c') diff --git a/ot_clean.c b/ot_clean.c index a45a3dc..f8bb637 100644 --- a/ot_clean.c +++ b/ot_clean.c @@ -25,7 +25,7 @@ int clean_single_torrent( ot_torrent *torrent ) { size_t peers_count = 0, seeds_count; time_t timedout = (int)( NOW - peer_list->base ); int i; -#ifdef WANT_TRACKER_SYNC +#ifdef WANT_SYNC_BATCH char *new_peers; #endif @@ -55,7 +55,7 @@ int clean_single_torrent( ot_torrent *torrent ) { memmove( peer_list->seed_counts + timedout, peer_list->seed_counts, sizeof( size_t ) * ( OT_POOLS_COUNT - timedout ) ); byte_zero( peer_list->seed_counts, sizeof( size_t ) * timedout ); -#ifdef WANT_TRACKER_SYNC +#ifdef WANT_SYNC_BATCH /* Save the block modified within last OT_POOLS_TIMEOUT */ if( peer_list->peers[1].size && ( new_peers = realloc( peer_list->changeset.data, sizeof( ot_peer ) * peer_list->peers[1].size ) ) ) -- cgit v1.2.3