diff options
author | Nick Mathewson <nickm@torproject.org> | 2007-02-02 18:58:11 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2007-02-02 18:58:11 +0000 |
commit | e521c96cb191ae746e06304b6bba49d925f63469 (patch) | |
tree | 0a15a866c74a2045f5a26c745e5f403e97178acc /src/or/directory.c | |
parent | 07e6eecdb2df0b4130201c4252770724f74c642c (diff) | |
download | tor-e521c96cb191ae746e06304b6bba49d925f63469.tar.gz tor-e521c96cb191ae746e06304b6bba49d925f63469.zip |
r12123@Kushana: nickm | 2007-02-02 13:57:42 -0500
Resolve remaining DOCDOC comments.
svn:r9476
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 87977a9c0d..3db8d938d7 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -1444,10 +1444,13 @@ already_fetching_directory(int purpose) #undef INSTRUMENT_DOWNLOADS #ifdef INSTRUMENT_DOWNLOADS -/** DOCDOC */ +/** Map used to keep track of how much data we've up/downloaded in what kind + * of request. Maps from request type to pointer to uint64_t. */ static strmap_t *request_bytes_map = NULL; -/** DOCDOC */ +/** Called when we just transmitted or received <b>bytes</b> worth of data + * because of a request of type <b>key</b> (an arbitrary identifier): adds + * <b>bytes</b> to the total associated with key. */ static void note_request(const char *key, size_t bytes) { @@ -1463,7 +1466,8 @@ note_request(const char *key, size_t bytes) *n += bytes; } -/** DOCDOC */ +/** Return a newly allocated string holding a summary of bytes used per + * request type. */ char * directory_dump_request_log(void) { |