1
0
Fork 0
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:
Jordan Lee 2011-03-22 16:50:09 +00:00
parent 0a1df687bb
commit e5143dbf9c

View file

@ -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 ));
}
}
}