[or-cvs] r8550: make hidden service predicted circuits correct rather than e (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Sat Sep 30 19:22:25 UTC 2006
Author: arma
Date: 2006-09-30 15:22:24 -0400 (Sat, 30 Sep 2006)
New Revision: 8550
Modified:
tor/trunk/src/or/rephist.c
Log:
make hidden service predicted circuits correct rather than
exactly incorrect. i wonder how much this will help.
Modified: tor/trunk/src/or/rephist.c
===================================================================
--- tor/trunk/src/or/rephist.c 2006-09-30 03:44:20 UTC (rev 8549)
+++ tor/trunk/src/or/rephist.c 2006-09-30 19:22:24 UTC (rev 8550)
@@ -902,9 +902,9 @@
}
if (predicted_internal_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
return 0; /* too long ago */
- if (predicted_internal_uptime_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
+ if (predicted_internal_uptime_time + PREDICTED_CIRCS_RELEVANCE_TIME >= now)
*need_uptime = 1;
- if (predicted_internal_capacity_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
+ if (predicted_internal_capacity_time + PREDICTED_CIRCS_RELEVANCE_TIME >= now)
*need_capacity = 1;
return 1;
}
More information about the tor-commits
mailing list