diff options
author | erdgeist <> | 2006-12-13 02:44:39 +0000 |
---|---|---|
committer | erdgeist <> | 2006-12-13 02:44:39 +0000 |
commit | d7c26dc71bd3cc04824ad979d31c1386dd5b1fa3 (patch) | |
tree | 53a381164f1d1ccfc1ae048db077799c595bd837 /trackerlogic.h | |
parent | 31c20c515d96c7311aa3483287202a48dd39cefb (diff) |
Trackerlogic done... not tested yet
Diffstat (limited to 'trackerlogic.h')
-rw-r--r-- | trackerlogic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trackerlogic.h b/trackerlogic.h index 73f5d16..3243eb7 100644 --- a/trackerlogic.h +++ b/trackerlogic.h | |||
@@ -20,7 +20,6 @@ typedef time_t ot_time; | |||
20 | #define FORMAT_FIXED_STRING sprintf | 20 | #define FORMAT_FIXED_STRING sprintf |
21 | #define FORMAT_FORMAT_STRING sprintf | 21 | #define FORMAT_FORMAT_STRING sprintf |
22 | #define BINARY_FIND binary_search | 22 | #define BINARY_FIND binary_search |
23 | #define NOW time(NULL) | ||
24 | 23 | ||
25 | // We maintain a list of 256 pointers to sorted list of ot_torrent structs | 24 | // We maintain a list of 256 pointers to sorted list of ot_torrent structs |
26 | // Sort key is, of course, its hash | 25 | // Sort key is, of course, its hash |
@@ -31,6 +30,7 @@ typedef time_t ot_time; | |||
31 | 30 | ||
32 | #define OT_POOLS_COUNT 9 | 31 | #define OT_POOLS_COUNT 9 |
33 | #define OT_POOLS_TIMEOUT 300 | 32 | #define OT_POOLS_TIMEOUT 300 |
33 | #define NOW (time(NULL)/OT_POOLS_TIMEOUT) | ||
34 | 34 | ||
35 | typedef struct ot_vector { | 35 | typedef struct ot_vector { |
36 | void *data; | 36 | void *data; |