]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Add log message so we have accurate build time values.
authorMike Perry <mikeperry-git@fscked.org>
Wed, 16 Sep 2009 11:55:43 +0000 (04:55 -0700)
committerMike Perry <mikeperry-git@fscked.org>
Thu, 17 Sep 2009 00:20:34 +0000 (17:20 -0700)
src/or/circuitbuild.c
src/or/or.h

index 25b81992b930fda755d8ea31a810d3963c0fdc9b..a87ad2e290796fab7a7598286b035836a4d6903a 100644 (file)
@@ -170,6 +170,9 @@ circuit_build_times_add_time(circuit_build_times_t *cbt, build_time_t time)
     return -1;
   }
 
+  // XXX: Probably want to demote this to debug for the release.
+  log_info(LD_CIRC, "Adding circuit build time %u", time);
+
   cbt->circuit_build_times[cbt->build_times_idx] = time;
   cbt->build_times_idx = (cbt->build_times_idx + 1) % NCIRCUITS_TO_OBSERVE;
   if (cbt->total_build_times < NCIRCUITS_TO_OBSERVE)
@@ -539,7 +542,8 @@ circuit_build_times_add_timeout_worker(circuit_build_times_t *cbt,
              "Generated a synthetic timeout larger than the max: %u",
              gentime);
   } else {
-    log_info(LD_CIRC, "Generated synthetic time %u for timeout", gentime);
+    log_info(LD_CIRC, "Generated synthetic circuit build time %u for timeout",
+            gentime);
   }
 
   circuit_build_times_add_time(cbt, gentime);
index a343b1f4b1d30bbcca22a2577a92570b923fc0a8..fb4ab8452f92286ccfef95cea1a6703d274c79ef 100644 (file)
@@ -2916,7 +2916,7 @@ typedef struct {
   int pre_timeouts;
   /** "Minimum" value of our pareto distribution (actually mode) */
   build_time_t Xm;
-  /** alpha exponent for pareto dis */
+  /** alpha exponent for pareto dist. */
   double alpha;
   /** Have we computed a timeout? */
   int have_computed_timeout;