summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h2
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
35typedef struct ot_vector { 35typedef struct ot_vector {
36 void *data; 36 void *data;