diff options
| author | erdgeist <> | 2009-03-17 23:57:20 +0000 | 
|---|---|---|
| committer | erdgeist <> | 2009-03-17 23:57:20 +0000 | 
| commit | c7ed890222939ff9d9a3b575eb83f216ccfebe9e (patch) | |
| tree | 09bcb2adbb64b2c3eb53bf20145262d13b258284 /ot_fullscrape.c | |
| parent | a58bce83ad91fa264a79c9a9acc9358bb2aa5661 (diff) | |
Fix white spaces
Introduce loading tracker states with -l
Alter tracker state to a human readable form
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 | ||
