[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r8550: make hidden service predicted circuits correct rather than e (tor/trunk/src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r8550: make hidden service predicted circuits correct rather than e (tor/trunk/src/or)
- From: arma@xxxxxxxx
- Date: Sat, 30 Sep 2006 15:22:25 -0400 (EDT)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Sat, 30 Sep 2006 15:22:32 -0400
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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;
}