summaryrefslogtreecommitdiff
path: root/src/or/directory.h
diff options
context:
space:
mode:
authorAndrea Shepard <andrea@torproject.org>2016-06-12 19:07:11 +0000
committerAndrea Shepard <andrea@torproject.org>2016-06-18 16:32:16 +0000
commit695b0bd1d5aca52a05df1a697a6b23a20be529d4 (patch)
tree75c40277318788676f0c9363a2ce182b3d76e98c /src/or/directory.h
parent033cf30b3cb505027c7542bb9b49717065a19fdf (diff)
downloadtor-695b0bd1d5aca52a05df1a697a6b23a20be529d4.tar.gz
tor-695b0bd1d5aca52a05df1a697a6b23a20be529d4.zip
Implement DL_SCHED_RANDOM_EXPONENTIAL support for download_status_t
Diffstat (limited to 'src/or/directory.h')
-rw-r--r--src/or/directory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/or/directory.h b/src/or/directory.h
index 7646cac03f..d867aa38c4 100644
--- a/src/or/directory.h
+++ b/src/or/directory.h
@@ -146,6 +146,7 @@ STATIC int directory_handle_command_get(dir_connection_t *conn,
size_t req_body_len);
STATIC int download_status_schedule_get_delay(download_status_t *dls,
const smartlist_t *schedule,
+ int min_delay, int max_delay,
time_t now);
STATIC char* authdir_type_to_string(dirinfo_type_t auth);
@@ -154,6 +155,9 @@ STATIC int should_use_directory_guards(const or_options_t *options);
STATIC zlib_compression_level_t choose_compression_level(ssize_t n_bytes);
STATIC const smartlist_t *find_dl_schedule(download_status_t *dls,
const or_options_t *options);
+STATIC void find_dl_min_and_max_delay(download_status_t *dls,
+ const or_options_t *options,
+ int *min, int *max);
#endif
#endif