diff options
Diffstat (limited to 'ot_fullscrape.c')
-rw-r--r-- | ot_fullscrape.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ot_fullscrape.c b/ot_fullscrape.c index 89db2f1..faea4b9 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c | |||
@@ -175,6 +175,10 @@ static void fullscrape_make( int *iovec_entries, struct iovec **iovector, ot_tas | |||
175 | to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); | 175 | to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); |
176 | r += sprintf( r, ":%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count ); | 176 | r += sprintf( r, ":%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count ); |
177 | break; | 177 | break; |
178 | case TASK_FULLSCRAPE_TPB_ASCII_PLUS: | ||
179 | to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); | ||
180 | r += sprintf( r, ":%zd:%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count, peer_list->down_count ); | ||
181 | break; | ||
178 | case TASK_FULLSCRAPE_TPB_BINARY: | 182 | case TASK_FULLSCRAPE_TPB_BINARY: |
179 | memcpy( r, *hash, sizeof(ot_hash) ); r += sizeof(ot_hash); | 183 | memcpy( r, *hash, sizeof(ot_hash) ); r += sizeof(ot_hash); |
180 | *(uint32_t*)(r+0) = htonl( (uint32_t) peer_list->seed_count ); | 184 | *(uint32_t*)(r+0) = htonl( (uint32_t) peer_list->seed_count ); |