diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-19 01:44:13 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-02-19 01:44:13 +0100 |
commit | 5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b (patch) | |
tree | b549de68b6691f0fc1b27b4417f0f5c1697239d2 /src/main.c | |
parent | store output in heap instead of on stack, which is too small for big torrents (diff) | |
download | travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.gz travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.bz2 travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.lz travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.xz travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.tar.zst travnik-5f9ab3d7eb557a9a7f54c628302f31af4dc1a84b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |