aboutsummaryrefslogtreecommitdiff
path: root/src/or/main.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-16 19:32:29 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-16 19:32:29 +0000
commit357b4645cf1e01e0b8790b0739d36221eb2bb3d0 (patch)
treebf3e737dba41eb60bbc81a8d37655df0b0801cc5 /src/or/main.c
parent2df9bb937d94697eda4af74c92e534f07278a857 (diff)
downloadtor-357b4645cf1e01e0b8790b0739d36221eb2bb3d0.tar.gz
tor-357b4645cf1e01e0b8790b0739d36221eb2bb3d0.zip
r14612@catbus: nickm | 2007-08-16 15:23:35 -0400
Initial work on proposal 108: have rephist.c track the information we want to be tracking for OR stability. svn:r11147
Diffstat (limited to 'src/or/main.c')
-rw-r--r--src/or/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index 3719afe58c..3ccad90adc 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -844,6 +844,7 @@ run_scheduled_events(time_t now)
static time_t time_to_reset_descriptor_failures = 0;
static time_t time_to_add_entropy = 0;
static time_t time_to_write_hs_statistics = 0;
+ static time_t time_to_downrate_stability = 0;
or_options_t *options = get_options();
int i;
int have_dir_info;
@@ -931,6 +932,10 @@ run_scheduled_events(time_t now)
dirserv_test_reachability(0);
}
+ /** 1d. DOCDOC */
+ if (time_to_downrate_stability < now)
+ time_to_downrate_stability = rep_hist_downrate_old_runs(now);
+
/** 2. Periodically, we consider getting a new directory, getting a
* new running-routers list, and/or force-uploading our descriptor
* (if we've passed our internal checks). */