aboutsummaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-20 15:59:31 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-20 15:59:31 +0000
commit9958dc8d5375b88cb6d07b168ff09a8d76acaa8e (patch)
treed8ccec6f38be2abb5f61dbe0b0f3e4439db2e826 /src/or/config.c
parentd3b019a1df1b821cf4634ee289ec3d47d74c9a2a (diff)
downloadtor-9958dc8d5375b88cb6d07b168ff09a8d76acaa8e.tar
tor-9958dc8d5375b88cb6d07b168ff09a8d76acaa8e.tar.gz
r14729@catbus: nickm | 2007-08-20 11:58:02 -0400
Trigger load and save of MTBF data. svn:r11219
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 048266f45..2dc3b973f 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1001,10 +1001,19 @@ options_act(or_options_t *old_options)
}
/* Load state */
- if (! global_state)
+ if (! global_state) {
if (or_state_load())
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);
+ }
+
/* Bail out at this point if we're not going to be a client or server:
* we want to not fork, and to log stuff to stderr. */
if (options->command != CMD_RUN_TOR)