mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-27 22:03:31 +01:00
make hidden service predicted circuits correct rather than
exactly incorrect. i wonder how much this will help. svn:r8550
This commit is contained in:
parent
723ff1c93d
commit
075cb54d9b
@ -902,9 +902,9 @@ rep_hist_get_predicted_internal(time_t now, int *need_uptime,
|
|||||||
}
|
}
|
||||||
if (predicted_internal_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
|
if (predicted_internal_time + PREDICTED_CIRCS_RELEVANCE_TIME < now)
|
||||||
return 0; /* too long ago */
|
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;
|
*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;
|
*need_capacity = 1;
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user