cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: use floating pt math for percentages
Date Wed, 25 Sep 2013 03:12:18 GMT
Updated Branches:
  refs/heads/cassandra-1.2 16f19a7cc -> ed9d11a72


use floating pt math for percentages


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

Branch: refs/heads/cassandra-1.2
Commit: ed9d11a72feac5840b1c725e71e22f56a72c8dca
Parents: 16f19a7
Author: Dave Brosius <dbrosius@apache.org>
Authored: Tue Sep 24 23:11:43 2013 -0400
Committer: Dave Brosius <dbrosius@apache.org>
Committed: Tue Sep 24 23:11:43 2013 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/db/ColumnFamilyStore.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ed9d11a7/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
index a41c157..6dd6e77 100644
--- a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
+++ b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
@@ -1919,7 +1919,7 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean
     public float getPercentageTombstonesPerLastRead()
     {
         long total = metric.tombstoneScannedHistogram.count() + metric.liveScannedHistogram.count();
-        return (metric.tombstoneScannedHistogram.count() / total);
+        return ((float) metric.tombstoneScannedHistogram.count() / total);
     }
 
     public long getLiveCellsPerLastRead()


Mime
View raw message