Changeset 12207


Ignore:
Timestamp:
Mar 22, 2011, 4:50:09 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) #4136 "r12181 causes excessive disk activity and logfile bloat" -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tr-dht.c

    r12204 r12207  
    605605            const int rc = tr_dhtAnnounce(tor, AF_INET, 1);
    606606
    607             tor->dhtAnnounceAt = now + (rc == 0)
     607            tor->dhtAnnounceAt = now + ((rc == 0)
    608608                                     ? 5 + tr_cryptoWeakRandInt( 5 )
    609                                      : 25 * 60 + tr_cryptoWeakRandInt( 3*60 );
     609                                     : 25 * 60 + tr_cryptoWeakRandInt( 3*60 ));
    610610        }
    611611
     
    614614            const int rc = tr_dhtAnnounce(tor, AF_INET6, 1);
    615615
    616             tor->dhtAnnounce6At = now + (rc == 0)
     616            tor->dhtAnnounce6At = now + ((rc == 0)
    617617                                      ? 5 + tr_cryptoWeakRandInt( 5 )
    618                                       : 25 * 60 + tr_cryptoWeakRandInt( 3*60 );
     618                                      : 25 * 60 + tr_cryptoWeakRandInt( 3*60 ));
    619619        }
    620620    }
Note: See TracChangeset for help on using the changeset viewer.