]> granicus.if.org Git - transmission/commitdiff
(trunk libT) #4136 "r12181 causes excessive disk activity and logfile bloat" -- fixed.
authorJordan Lee <jordan@transmissionbt.com>
Tue, 22 Mar 2011 16:50:09 +0000 (16:50 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Tue, 22 Mar 2011 16:50:09 +0000 (16:50 +0000)
libtransmission/tr-dht.c

index 9216254e9038e927b76e343a18f3c7d468443c4c..44171e00262ac0da31473197a7d1944be744be1f 100644 (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 ));
         }
     }
 }