diff options
author | Andrea Shepard <andrea@torproject.org> | 2016-06-18 19:05:46 +0000 |
---|---|---|
committer | Andrea Shepard <andrea@torproject.org> | 2016-06-18 19:05:46 +0000 |
commit | 5a4ed29f01479f0f5c0141ec09cf5ff2c1e15a9b (patch) | |
tree | 468ad787f5c3ec2997b2ddfd944b66ed37ce0a76 /src/or/or.h | |
parent | 1f1df4ab740b2d2c2a833a81553bb723512bdd97 (diff) | |
download | tor-5a4ed29f01479f0f5c0141ec09cf5ff2c1e15a9b.tar.gz tor-5a4ed29f01479f0f5c0141ec09cf5ff2c1e15a9b.zip |
Better comments on exponential-backoff related members of download_status_t
Diffstat (limited to 'src/or/or.h')
-rw-r--r-- | src/or/or.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/or/or.h b/src/or/or.h index efe5680b40..ea38022f43 100644 --- a/src/or/or.h +++ b/src/or/or.h @@ -2047,8 +2047,10 @@ typedef struct download_status_t { * exponential backoffs? */ uint8_t last_backoff_position; /**< number of attempts/failures, depending * on increment_on, when we last recalculated - * the delay. */ - int last_delay_used; /**< last delay used for random exponential backoff */ + * the delay. Only updated if backoff + * == 1. */ + int last_delay_used; /**< last delay used for random exponential backoff; + * only updated if backoff == 1 */ } download_status_t; /** If n_download_failures is this high, the download can never happen. */ |