You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by db...@apache.org on 2014/02/15 01:26:20 UTC

git commit: use floating pt math for floating pt results

Repository: cassandra
Updated Branches:
  refs/heads/trunk 21ec02183 -> ad2f6bb6f


use floating pt math for floating pt results


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

Branch: refs/heads/trunk
Commit: ad2f6bb6f7d7d684b8723d76d1a0fb008abf41f0
Parents: 21ec021
Author: Dave Brosius <db...@mebigfatguy.com>
Authored: Fri Feb 14 19:25:41 2014 -0500
Committer: Dave Brosius <db...@mebigfatguy.com>
Committed: Fri Feb 14 19:25:41 2014 -0500

----------------------------------------------------------------------
 .../org/apache/cassandra/io/sstable/IndexSummaryManagerTest.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/ad2f6bb6/test/unit/org/apache/cassandra/io/sstable/IndexSummaryManagerTest.java
----------------------------------------------------------------------
diff --git a/test/unit/org/apache/cassandra/io/sstable/IndexSummaryManagerTest.java b/test/unit/org/apache/cassandra/io/sstable/IndexSummaryManagerTest.java
index c0d9678..35fd9bd 100644
--- a/test/unit/org/apache/cassandra/io/sstable/IndexSummaryManagerTest.java
+++ b/test/unit/org/apache/cassandra/io/sstable/IndexSummaryManagerTest.java
@@ -216,7 +216,7 @@ public class IndexSummaryManagerTest extends SchemaLoader
         // return min_index_interval to it's original value (double it), but only give the summary enough space
         // to have an effective index interval of twice the new min
         cfs.metadata.minIndexInterval(originalMinIndexInterval);
-        IndexSummaryManager.redistributeSummaries(Collections.EMPTY_LIST, Arrays.asList(sstable), (long) Math.ceil(summarySpace / 2));
+        IndexSummaryManager.redistributeSummaries(Collections.EMPTY_LIST, Arrays.asList(sstable), (long) Math.ceil(summarySpace / 2.0));
         sstable = cfs.getSSTables().iterator().next();
         assertEquals(originalMinIndexInterval * 2, sstable.getEffectiveIndexInterval(), 0.001);
         assertEquals(numRows / (originalMinIndexInterval * 2), sstable.getIndexSummarySize());