diff options
author | Nick Mathewson <nickm@torproject.org> | 2010-09-13 15:56:46 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2010-09-13 15:56:46 -0400 |
commit | 13f684b573f46662a01eab95e5a61bf8d9de3c82 (patch) | |
tree | 808848125659e4dde9c711bd7b08586170dd241d /src/or/directory.c | |
parent | 1bc20f9c1a6b5733b0502a67ee160291f761b802 (diff) | |
parent | bfa1962d8026e632e00760c1e14b39d154977adf (diff) | |
download | tor-13f684b573f46662a01eab95e5a61bf8d9de3c82.tar.gz tor-13f684b573f46662a01eab95e5a61bf8d9de3c82.zip |
Merge remote branch 'public/pretty-signature-log'
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 97ee0c9fbc..ffa312bc41 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3533,6 +3533,14 @@ download_status_reset(download_status_t *dls) dls->next_attempt_at = time(NULL) + schedule[0]; } +/** Return the number of failures on <b>dls</b> since the last success (if + * any). */ +int +download_status_get_n_failures(const download_status_t *dls) +{ + return dls->n_download_failures; +} + /** Called when one or more routerdesc (or extrainfo, if <b>was_extrainfo</b>) * fetches have failed (with uppercase fingerprints listed in <b>failed</b>, * either as descriptor digests or as identity digests based on |