diff options
Diffstat (limited to 'src/trackerlogic.h')
| -rw-r--r-- | src/trackerlogic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/trackerlogic.h b/src/trackerlogic.h index 6b53406..c4b7774 100644 --- a/src/trackerlogic.h +++ b/src/trackerlogic.h | |||
| @@ -44,6 +44,11 @@ typedef struct { | |||
| 44 | #define OT_TORRENT_TIMEOUT_HOURS 24 | 44 | #define OT_TORRENT_TIMEOUT_HOURS 24 |
| 45 | #define OT_TORRENT_TIMEOUT (60 * OT_TORRENT_TIMEOUT_HOURS) | 45 | #define OT_TORRENT_TIMEOUT (60 * OT_TORRENT_TIMEOUT_HOURS) |
| 46 | 46 | ||
| 47 | /* How long a torrent kept only for its download count, with no peers in either | ||
| 48 | family, is held, in minutes. Defaults to OT_TORRENT_TIMEOUT and is lowered by | ||
| 49 | tracker.empty_torrent_timeout. */ | ||
| 50 | extern ot_time g_empty_torrent_timeout; | ||
| 51 | |||
| 47 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM \ | 52 | #define OT_CLIENT_REQUEST_INTERVAL_RANDOM \ |
| 48 | (OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION / 2 + (int)(nrand48(ws->rand48_state) % OT_CLIENT_REQUEST_VARIATION)) | 53 | (OT_CLIENT_REQUEST_INTERVAL - OT_CLIENT_REQUEST_VARIATION / 2 + (int)(nrand48(ws->rand48_state) % OT_CLIENT_REQUEST_VARIATION)) |
| 49 | #define OT_CLIENT_REJECT_INTERVAL_RANDOM \ | 54 | #define OT_CLIENT_REJECT_INTERVAL_RANDOM \ |
