Author: brandonwilliams Date: Thu Sep 16 16:52:30 2010 New Revision: 997841
URL: http://svn.apache.org/viewvc?rev=997841&view=rev Log: Correctly express memtable_throughput_in_mb in megabytes. Patch by brandonwilliams Modified: cassandra/trunk/src/java/org/apache/cassandra/config/Config.java Modified: cassandra/trunk/src/java/org/apache/cassandra/config/Config.java URL: http://svn.apache.org/viewvc/cassandra/trunk/src/java/org/apache/cassandra/config/Config.java?rev=997841&r1=997840&r2=997841&view=diff ============================================================================== --- cassandra/trunk/src/java/org/apache/cassandra/config/Config.java (original) +++ cassandra/trunk/src/java/org/apache/cassandra/config/Config.java Thu Sep 16 16:52:30 2010 @@ -73,7 +73,7 @@ public class Config /* Number of minutes to keep a memtable in memory */ public Integer memtable_flush_after_mins = 60 * 60 * 1000; /* Size of the memtable in memory before it is dumped */ - public Integer memtable_throughput_in_mb = (int) Runtime.getRuntime().maxMemory() / 8; + public Integer memtable_throughput_in_mb = (int) (Runtime.getRuntime().maxMemory() / 1024^2 / 8); /* Number of objects in millions in the memtable before it is dumped */ public Double memtable_operations_in_millions = memtable_throughput_in_mb / 64 * 0.3;
