diff options
author | teor <teor2345@gmail.com> | 2017-07-05 01:27:17 +1000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-07-07 13:18:04 -0400 |
commit | f813b05202171a1b39d9428e68885b36fcceef11 (patch) | |
tree | e3248c3204767f9aaa1461097265541b86a43a26 /src/or/directory.c | |
parent | c21cfd28f43a969229ede02e20c6b554c1b88aae (diff) | |
download | tor-f813b05202171a1b39d9428e68885b36fcceef11.tar.gz tor-f813b05202171a1b39d9428e68885b36fcceef11.zip |
Give correct bounds in next_random_exponential_delay() comment
Diffstat (limited to 'src/or/directory.c')
-rw-r--r-- | src/or/directory.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/directory.c b/src/or/directory.c index 7d6a060b58..3eb56c2b82 100644 --- a/src/or/directory.c +++ b/src/or/directory.c @@ -3778,8 +3778,8 @@ find_dl_min_and_max_delay(download_status_t *dls, const or_options_t *options, /** Advance one delay step. The algorithm is to use the previous delay to * compute an increment, we construct a value uniformly at random between - * delay and MAX(delay*2,delay+1). We then clamp that value to be no larger - * than max_delay, and return it. + * delay+1 and (delay*4)+1 (or *3 in test networks). + * We then clamp that value to be no larger than max_delay, and return it. * * Requires that delay is less than INT_MAX, and delay is in [0,max_delay]. */ |