mirror of
https://github.com/transmission/transmission
synced 2025-01-31 03:12:44 +00:00
(trunk libT) #4136 "r12181 causes excessive disk activity and logfile bloat" -- fixed.
This commit is contained in:
parent
0a1df687bb
commit
e5143dbf9c
1 changed files with 4 additions and 4 deletions
|
@ -604,18 +604,18 @@ tr_dhtUpkeep( tr_session * session )
|
|||
{
|
||||
const int rc = tr_dhtAnnounce(tor, AF_INET, 1);
|
||||
|
||||
tor->dhtAnnounceAt = now + (rc == 0)
|
||||
tor->dhtAnnounceAt = now + ((rc == 0)
|
||||
? 5 + tr_cryptoWeakRandInt( 5 )
|
||||
: 25 * 60 + tr_cryptoWeakRandInt( 3*60 );
|
||||
: 25 * 60 + tr_cryptoWeakRandInt( 3*60 ));
|
||||
}
|
||||
|
||||
if( tor->dhtAnnounce6At <= now )
|
||||
{
|
||||
const int rc = tr_dhtAnnounce(tor, AF_INET6, 1);
|
||||
|
||||
tor->dhtAnnounce6At = now + (rc == 0)
|
||||
tor->dhtAnnounce6At = now + ((rc == 0)
|
||||
? 5 + tr_cryptoWeakRandInt( 5 )
|
||||
: 25 * 60 + tr_cryptoWeakRandInt( 3*60 );
|
||||
: 25 * 60 + tr_cryptoWeakRandInt( 3*60 ));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue