diff options
author | Mike Perry <mikeperry-git@fscked.org> | 2009-09-16 04:55:43 -0700 |
---|---|---|
committer | Mike Perry <mikeperry-git@fscked.org> | 2009-09-16 17:20:34 -0700 |
commit | e4e0ce94f0cd6ad18b9158e99936faeee5b6e092 (patch) | |
tree | 866adef8a07e2ddcf52e1bc40f5d6d390e81a4fa /src | |
parent | 5bd60d8a411c90000e6a55e70eb814ea6c69e011 (diff) | |
download | tor-e4e0ce94f0cd6ad18b9158e99936faeee5b6e092.tar.gz tor-e4e0ce94f0cd6ad18b9158e99936faeee5b6e092.zip |
Add log message so we have accurate build time values.
Diffstat (limited to 'src')
-rw-r--r-- | src/or/circuitbuild.c | 6 | ||||
-rw-r--r-- | src/or/or.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/or/circuitbuild.c b/src/or/circuitbuild.c index 25b81992b9..a87ad2e290 100644 --- a/src/or/circuitbuild.c +++ b/src/or/circuitbuild.c @@ -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); diff --git a/src/or/or.h b/src/or/or.h index a343b1f4b1..fb4ab8452f 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -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; |