diff options
author | erdgeist <> | 2007-01-03 05:11:48 +0000 |
---|---|---|
committer | erdgeist <> | 2007-01-03 05:11:48 +0000 |
commit | e0a9c2a4aa4fc6b648ae20071c35797c4a103e42 (patch) | |
tree | 246048aacb395db5c747fc4da260d6abf1f9b99f /trackerlogic.h | |
parent | f40b373c3b289687872269e4b931ada7044dc0d2 (diff) |
Added option to get ip from query string + parser, fixed two bugs concerning grow/shrink of vectors. Now cleans up a torrent BEFORE trying to remove a peer -> this may remove peer already and must be done anyway.
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/trackerlogic.h b/trackerlogic.h index a5dce7c..7fcc73d 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -32,6 +32,10 @@ typedef time_t ot_time; | |||
32 | #define OT_POOLS_TIMEOUT 300 | 32 | #define OT_POOLS_TIMEOUT 300 |
33 | #define NOW (time(NULL)/OT_POOLS_TIMEOUT) | 33 | #define NOW (time(NULL)/OT_POOLS_TIMEOUT) |
34 | 34 | ||
35 | #define OT_VECTOR_MIN_MEMBERS 128 | ||
36 | #define OT_VECTOR_GROW_RATIO 2 | ||
37 | #define OT_VECTOR_SHRINK_THRESH 3 | ||
38 | #define OT_VECTOR_SHRINK_RATIO 2 | ||
35 | typedef struct { | 39 | typedef struct { |
36 | void *data; | 40 | void *data; |
37 | size_t size; | 41 | size_t size; |