mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 12:28:52 +00:00
(trunk libT) #4136 "r12181 causes excessive disk activity and logfile bloat" -- fixed.
This commit is contained in:
@@ -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 ));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user