Author: brandonwilliams
Date: Thu Sep 16 17:37:15 2010
New Revision: 997861

URL: http://svn.apache.org/viewvc?rev=997861&view=rev
Log:
Calculate MB correctly for memtable throughput.  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=997861&r1=997860&r2=997861&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 
17:37:15 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() / 1024^2 / 8);
+    public Integer memtable_throughput_in_mb = (int) 
(Runtime.getRuntime().maxMemory() / 1048576 / 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;
     


Reply via email to