cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject cassandra git commit: use double math for double results
Date Fri, 23 Dec 2016 00:31:06 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk 72934d5df -> a605f4258


use double math for double results


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/a605f425
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/a605f425
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/a605f425

Branch: refs/heads/trunk
Commit: a605f4258885850d8fb315831ac00d071cf6f274
Parents: 72934d5
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Thu Dec 22 19:30:52 2016 -0500
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Thu Dec 22 19:30:52 2016 -0500

----------------------------------------------------------------------
 .../cassandra/metrics/DecayingEstimatedHistogramReservoir.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/a605f425/src/java/org/apache/cassandra/metrics/DecayingEstimatedHistogramReservoir.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/metrics/DecayingEstimatedHistogramReservoir.java
b/src/java/org/apache/cassandra/metrics/DecayingEstimatedHistogramReservoir.java
index d0e550e..e0cddee 100644
--- a/src/java/org/apache/cassandra/metrics/DecayingEstimatedHistogramReservoir.java
+++ b/src/java/org/apache/cassandra/metrics/DecayingEstimatedHistogramReservoir.java
@@ -190,7 +190,7 @@ public class DecayingEstimatedHistogramReservoir implements Reservoir
 
     private double forwardDecayWeight(long now)
     {
-        return Math.exp(((now - decayLandmark) / 1000L) / MEAN_LIFETIME_IN_S);
+        return Math.exp(((now - decayLandmark) / 1000.0) / MEAN_LIFETIME_IN_S);
     }
 
     /**


Mime
View raw message