diff options
Diffstat (limited to 'ot_fullscrape.c')
-rw-r--r-- | ot_fullscrape.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ot_fullscrape.c b/ot_fullscrape.c index d284bd4..46ce8f8 100644 --- a/ot_fullscrape.c +++ b/ot_fullscrape.c | |||
@@ -184,10 +184,8 @@ static void fullscrape_make( int *iovec_entries, struct iovec **iovector, ot_tas | |||
184 | r += sprintf( r, ":%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count ); | 184 | r += sprintf( r, ":%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count ); |
185 | break; | 185 | break; |
186 | case TASK_FULLSCRAPE_TRACKERSTATE: | 186 | case TASK_FULLSCRAPE_TRACKERSTATE: |
187 | memcpy( r, *hash, sizeof(ot_hash) ); r += sizeof(ot_hash); | 187 | to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); |
188 | uint64_pack_big( r, (uint64_t)peer_list->down_count ); | 188 | r += sprintf( r, ":%zd:%zd\n", peer_list->base, peer_list->down_count ); |
189 | uint64_pack_big( r + 8, (uint64_t)peer_list->base ); | ||
190 | r += 16; | ||
191 | break; | 189 | break; |
192 | } | 190 | } |
193 | 191 | ||