cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbel...@apache.org
Subject svn commit: r964625 - /cassandra/trunk/src/java/org/apache/cassandra/gms/FailureDetector.java
Date Thu, 15 Jul 2010 22:08:19 GMT
Author: jbellis
Date: Thu Jul 15 22:08:19 2010
New Revision: 964625

URL: http://svn.apache.org/viewvc?rev=964625&view=rev
Log:
simplify FailureDetector probability calculation.  patch by jbellis

Modified:
    cassandra/trunk/src/java/org/apache/cassandra/gms/FailureDetector.java

Modified: cassandra/trunk/src/java/org/apache/cassandra/gms/FailureDetector.java
URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/gms/FailureDetector.java?rev=964625&r1=964624&r2=964625&view=diff
==============================================================================
--- cassandra/trunk/src/java/org/apache/cassandra/gms/FailureDetector.java (original)
+++ cassandra/trunk/src/java/org/apache/cassandra/gms/FailureDetector.java Thu Jul 15 22:08:19
2010
@@ -266,7 +266,7 @@ class ArrivalWindow
     {
         double mean = mean();
         double exponent = (-1)*(t)/mean;
-        return 1 - ( 1 - Math.pow(Math.E, exponent) );
+        return Math.pow(Math.E, exponent);
     }
     
     double phi(long tnow)



Mime
View raw message