aboutsummaryrefslogtreecommitdiff
path: root/src/or/dirserv.c
diff options
context:
space:
mode:
authorSebastian Hahn <sebastian@torproject.org>2011-10-07 02:39:48 +0200
committerNick Mathewson <nickm@torproject.org>2011-10-21 11:21:42 -0400
commit03c06b629fc604030393567ec05c16f813d43529 (patch)
treea53474e347e5fa26ae5d14d2822be1869aaceeb3 /src/or/dirserv.c
parentaf02c4a9c3ee0ab85a4ecf5c7ff16e2da901c886 (diff)
downloadtor-03c06b629fc604030393567ec05c16f813d43529.tar.gz
tor-03c06b629fc604030393567ec05c16f813d43529.zip
Add new stats type: descriptor fetch stats
This is used for the bridge authority currently, to get a better intuition on how many descriptors are actually fetched from it and how many fetches happen in total. Implements ticket 4200.
Diffstat (limited to 'src/or/dirserv.c')
-rw-r--r--src/or/dirserv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/dirserv.c b/src/or/dirserv.c
index f64dcff33b..4b9587b0fc 100644
--- a/src/or/dirserv.c
+++ b/src/or/dirserv.c
@@ -3509,6 +3509,7 @@ connection_dirserv_add_servers_to_outbuf(dir_connection_t *conn)
* unknown bridge descriptor has shown up between then and now. */
continue;
}
+ rep_hist_note_desc_served(sd->identity_digest);
body = signed_descriptor_get_body(sd);
if (conn->zlib_state) {
/* XXXX022 This 'last' business should actually happen on the last