aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-08-20 17:02:04 +0000
committerNick Mathewson <nickm@torproject.org>2007-08-20 17:02:04 +0000
commitdf0a141a2737b3735d11515e50e9b6c9cec375b1 (patch)
treec0822e571ba9239cad630b7d87beacfadcdb6e33 /src
parent3effc8b2673aee3b1255b210947cdb41c045e257 (diff)
downloadtor-df0a141a2737b3735d11515e50e9b6c9cec375b1.tar
tor-df0a141a2737b3735d11515e50e9b6c9cec375b1.tar.gz
r14740@catbus: nickm | 2007-08-20 13:00:52 -0400
Only load MTBF data if we are running tor svn:r11226
Diffstat (limited to 'src')
-rw-r--r--src/or/config.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 200862bdc..ca8f1d51a 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -1006,7 +1006,8 @@ options_act(or_options_t *old_options)
return -1;
/* XXXX020 make this conditional? */
- rep_hist_load_mtbf_data(time(NULL));
+ if (options->command == CMD_RUN_TOR)
+ rep_hist_load_mtbf_data(time(NULL));
}
/* Bail out at this point if we're not going to be a client or server: