From c7ed890222939ff9d9a3b575eb83f216ccfebe9e Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Tue, 17 Mar 2009 23:57:20 +0000 Subject: Fix white spaces Introduce loading tracker states with -l Alter tracker state to a human readable form --- ot_fullscrape.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ot_fullscrape.c') 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 r += sprintf( r, ":%zd:%zd\n", peer_list->seed_count, peer_list->peer_count-peer_list->seed_count ); break; case TASK_FULLSCRAPE_TRACKERSTATE: - memcpy( r, *hash, sizeof(ot_hash) ); r += sizeof(ot_hash); - uint64_pack_big( r, (uint64_t)peer_list->down_count ); - uint64_pack_big( r + 8, (uint64_t)peer_list->base ); - r += 16; + to_hex( r, *hash ); r+= 2 * sizeof(ot_hash); + r += sprintf( r, ":%zd:%zd\n", peer_list->base, peer_list->down_count ); break; } -- cgit v1.2.3