Write comments for members of periods array.

This commit is contained in:
rl1987 2014-08-19 22:23:11 +03:00 committed by Nick Mathewson
parent 197d855009
commit c731a1c68f

View File

@ -165,10 +165,12 @@ entry_is_time_to_retry(const entry_guard_t *e, time_t now)
}; };
struct guard_retry_period_s periods[] = { struct guard_retry_period_s periods[] = {
{ 6*60*60, 60*60 }, { 6*60*60, 60*60 }, /* For first 6 hrs., retry hourly; */
{ 3*24*60*60, 4*60*60 }, { 3*24*60*60, 4*60*60 }, /* Then retry every 4 hrs. until the
{ 7*24*60*60, 18*60*60 }, 3-day mark; */
{ TIME_MAX, 36*60*60 } { 7*24*60*60, 18*60*60 }, /* After 3 days, retry every 18 hours until
1 week mark. */
{ TIME_MAX, 36*60*60 } /* After 1 week, retry every 36 hours. */
}; };
time_t ith_deadline_for_retry; time_t ith_deadline_for_retry;