cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bened...@apache.org
Subject [2/6] cassandra git commit: ninja fix heap usage ratio logging
Date Mon, 20 Jul 2015 11:52:59 GMT
ninja fix heap usage ratio logging


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

Branch: refs/heads/cassandra-2.2
Commit: b87103befe6af24698a12c530cf7aa5df932bd39
Parents: 2d462c0
Author: Benedict Elliott Smith <benedict@apache.org>
Authored: Mon Jul 20 12:52:11 2015 +0100
Committer: Benedict Elliott Smith <benedict@apache.org>
Committed: Mon Jul 20 12:52:17 2015 +0100

----------------------------------------------------------------------
 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/b87103be/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 ec747b3..aec5f35 100644
--- a/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
+++ b/src/java/org/apache/cassandra/db/ColumnFamilyStore.java
@@ -1200,7 +1200,7 @@ public class ColumnFamilyStore implements ColumnFamilyStoreMBean
 
     private static String ratio(float onHeap, float offHeap)
     {
-        return String.format("%.0f/%.0f", onHeap, offHeap);
+        return String.format("%.2f/%.2f", onHeap, offHeap);
     }
 
     public void maybeUpdateRowCache(DecoratedKey key)


Mime
View raw message