[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r11226: Only load MTBF data if we are running tor (in tor/trunk: . src/or)



Author: nickm
Date: 2007-08-20 13:02:04 -0400 (Mon, 20 Aug 2007)
New Revision: 11226

Modified:
   tor/trunk/
   tor/trunk/src/or/config.c
Log:
 r14740@catbus:  nickm | 2007-08-20 13:00:52 -0400
 Only load MTBF data if we are running tor



Property changes on: tor/trunk
___________________________________________________________________
 svk:merge ticket from /tor/trunk [r14740] on 8246c3cf-6607-4228-993b-4d95d33730f1

Modified: tor/trunk/src/or/config.c
===================================================================
--- tor/trunk/src/or/config.c	2007-08-20 16:34:17 UTC (rev 11225)
+++ tor/trunk/src/or/config.c	2007-08-20 17:02:04 UTC (rev 11226)
@@ -1006,7 +1006,8 @@
       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: