diff options
author | denis <> | 2008-08-30 00:05:44 +0000 |
---|---|---|
committer | denis <> | 2008-08-30 00:05:44 +0000 |
commit | c71505fd9acc374792353fc3369b4e3069fd9163 (patch) | |
tree | dea6ce27fd7088d6e78520fd87a240ad6a1eb379 /trackerlogic.c | |
parent | 96243526c4a96dcfa7cc0043f17341e47984f718 (diff) |
send out the total downloaders for a announce response
Diffstat (limited to 'trackerlogic.c')
-rw-r--r-- | trackerlogic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.c b/trackerlogic.c index fd6a6ee..37bb878 100644 --- a/trackerlogic.c +++ b/trackerlogic.c | |||
@@ -165,7 +165,7 @@ size_t return_peers_for_torrent( ot_hash *hash, size_t amount, char *reply, int | |||
165 | amount = peer_list->peer_count; | 165 | amount = peer_list->peer_count; |
166 | 166 | ||
167 | if( is_tcp ) | 167 | if( is_tcp ) |
168 | r += sprintf( r, "d8:completei%zde10:incompletei%zde8:intervali%ie5:peers%zd:", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count, OT_CLIENT_REQUEST_INTERVAL_RANDOM, 6*amount ); | 168 | r += sprintf( r, "d8:completei%zde10:downloadedi%zde10:incompletei%zde8:intervali%ie5:peers%zd:", peer_list->seed_count, peer_list->down_count, peer_list->peer_count-peer_list->seed_count, OT_CLIENT_REQUEST_INTERVAL_RANDOM, 6*amount ); |
169 | else { | 169 | else { |
170 | *(uint32_t*)(r+0) = htonl( OT_CLIENT_REQUEST_INTERVAL_RANDOM ); | 170 | *(uint32_t*)(r+0) = htonl( OT_CLIENT_REQUEST_INTERVAL_RANDOM ); |
171 | *(uint32_t*)(r+4) = htonl( peer_list->peer_count ); | 171 | *(uint32_t*)(r+4) = htonl( peer_list->peer_count ); |