Remove an assert.

It seems to fire because of precision issues. Added
more debug info to the warn to try to figure out for sure.
This commit is contained in:
Mike Perry 2009-09-06 21:05:17 -07:00
parent 63be2df84f
commit c9363df09f

View File

@ -464,8 +464,8 @@ circuit_build_times_add_timeout_worker(circuit_build_times_t *cbt,
if (gentime < (build_time_t)cbt->timeout*1000) { if (gentime < (build_time_t)cbt->timeout*1000) {
log_warn(LD_CIRC, log_warn(LD_CIRC,
"Generated a synthetic timeout LESS than the current timeout: " "Generated a synthetic timeout LESS than the current timeout: "
"%u vs %d", gentime, cbt->timeout*1000); "%u vs %d using Xm: %d a: %lf, q: %lf",
tor_assert(gentime >= (build_time_t)cbt->timeout*1000); gentime, cbt->timeout*1000, cbt->Xm, cbt->alpha, quantile_cutoff);
} else if (gentime > BUILD_TIME_MAX) { } else if (gentime > BUILD_TIME_MAX) {
gentime = BUILD_TIME_MAX; gentime = BUILD_TIME_MAX;
log_info(LD_CIRC, log_info(LD_CIRC,