diff options
author | erdgeist <> | 2007-01-16 03:44:13 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-16 03:44:13 +0000 |
commit | 43b60783a1cfe39e58d08ccd858d93d9b5020a9c (patch) | |
tree | 9d17ce87f82353b8c7a17c4a8d7dd176f7c9dee8 /trackerlogic.c | |
parent | ade82689709441f64ec871709d7ce95b14cd729c (diff) |
Use mrtg to do periodical cleanup. Hopefully that wont make too much load for stats.
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index 0c78e16..7d5c16b 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -321,6 +321,7 @@ size_t return_stats_for_tracker( char *reply ) { | |||
321 | torrent_count += torrents_list->size; | 321 | torrent_count += torrents_list->size; |
322 | for( j=0; j<torrents_list->size; ++j ) { | 322 | for( j=0; j<torrents_list->size; ++j ) { |
323 | ot_peerlist *peer_list = ( ((ot_torrent*)(torrents_list->data))[j] ).peer_list; | 323 | ot_peerlist *peer_list = ( ((ot_torrent*)(torrents_list->data))[j] ).peer_list; |
324 | clean_peerlist( peer_list ); | ||
324 | for( k=0; k<OT_POOLS_COUNT; ++k ) { | 325 | for( k=0; k<OT_POOLS_COUNT; ++k ) { |
325 | peer_count += peer_list->peers[k].size; | 326 | peer_count += peer_list->peers[k].size; |
326 | seed_count += peer_list->seed_count[k]; | 327 | seed_count += peer_list->seed_count[k]; |