aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-20 16:34:17 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-20 16:34:17 +0000
commit3effc8b2673aee3b1255b210947cdb41c045e257 (patch)
treedae7088feefb1d41a0c848fbcbc5cbb67cb4d566 /src/or/config.c
parenta8a7ef3da6cd16a30adc0ba250a1ade51dcde59c (diff)
downloadtor-3effc8b2673aee3b1255b210947cdb41c045e257.tar
tor-3effc8b2673aee3b1255b210947cdb41c045e257.tar.gz
r14733@catbus: nickm | 2007-08-20 12:32:44 -0400
Clean up MTBF storage code. Do not count times that we have been down toward the current run. Handle backward timewarps correctly. Store MTBF data on exit in addition to periodically. svn:r11225
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 2dc3b973f..200862bdc 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1006,12 +1006,7 @@ options_act(or_options_t *old_options)
return -1;
/* XXXX020 make this conditional? */
- len = strlen(options->DataDirectory)+32;
- fn = tor_malloc(len);
- tor_snprintf(fn, len, "%s"PATH_SEPARATOR"router-stability",
- options->DataDirectory);
- rep_hist_load_mtbf_data(fn, time(NULL));
- tor_free(fn);
+ rep_hist_load_mtbf_data(time(NULL));
}
/* Bail out at this point if we're not going to be a client or server: