diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/dht.c | 2 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -794,7 +794,7 @@ struct dht * dht_init (const struct bencoding * c) { #pragma GCC diagnostic pop goto e; } -#define TOOMUCH 32727 +#define TOOMUCH (32727*1) unsigned pinged = 0; if (c) { const struct bencoding * id = bpath(c, "id"); @@ -48,7 +48,7 @@ void found_torrent (struct dht * d __attribute__((unused)), const unsigned char t->ttl = seconds()+256; t->type |= info | peers; } else { - if (last_added + 1 > seconds()) { + if (last_added + 2 > seconds()) { L(debug, d, "not adding a torrent this fast"); return; } |