diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-12-17 22:58:20 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-12-17 22:58:20 +0000 |
commit | 6693f3253097326abe3a57469690330cd73d2456 (patch) | |
tree | 76e53f5552b311e651cf70c6324370cad1e53ebe /src/or/rephist.c | |
parent | 2ad36f68c8e5bbbc0f284c04f266f80866d2aef9 (diff) | |
download | tor-6693f3253097326abe3a57469690330cd73d2456.tar.gz tor-6693f3253097326abe3a57469690330cd73d2456.zip |
Resolve many DOCDOCs.
svn:r17662
Diffstat (limited to 'src/or/rephist.c')
-rw-r--r-- | src/or/rephist.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/or/rephist.c b/src/or/rephist.c index 088635cda4..45dbd6c4fc 100644 --- a/src/or/rephist.c +++ b/src/or/rephist.c @@ -777,7 +777,8 @@ rep_hist_record_mtbf_data(void) return -1; } -/** DOCDOC */ +/** Format the current tracked status of the router in <b>hist</b> at time + * <b>now</b> for analysis; return it in a newly allocated string. */ static char * rep_hist_format_router_status(or_history_t *hist, time_t now) { @@ -821,12 +822,17 @@ rep_hist_format_router_status(or_history_t *hist, time_t now) return tor_strdup(buf); } -/* DOCDOC */ +/** The last stability analysis document that we created, or NULL if we never + * have created one. */ static char *last_stability_doc = NULL; +/** The last time we created a stability analysis document, or 0 if we never + * have created one. */ static time_t built_last_stability_doc_at = 0; +/** Shortest allowable time between building two stability documents. */ #define MAX_STABILITY_DOC_BUILD_RATE (3*60) -/* DOCDOC */ +/** Return a pointer to a NUL-terminated document describing our view of the + * stability of the routers we've been tracking. Return NULL on failure. */ const char * rep_hist_get_router_stability_doc(time_t now) { |