From 5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Sun, 19 Feb 2023 01:44:13 +0100 Subject: =?UTF-8?q?za=C4=8Detek=20analize=20v=20pythonu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dht.c | 2 +- src/main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dht.c b/src/dht.c index 4e57e5e..d97b80b 100644 --- a/src/dht.c +++ b/src/dht.c @@ -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"); diff --git a/src/main.c b/src/main.c index de21f7a..199bfab 100644 --- a/src/main.c +++ b/src/main.c @@ -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; } -- cgit v1.2.3