cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From slebre...@apache.org
Subject [1/2] cassandra git commit: For CASSANDRA-9526, change line separator to the platform independent version when formatting strings in nodetool
Date Thu, 29 Oct 2015 09:39:27 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-3.0 4b47d711e -> a8014bb7e


For CASSANDRA-9526, change line separator to the platform independent version when formatting
strings in nodetool


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

Branch: refs/heads/cassandra-3.0
Commit: b154622b6cc78db4cbd1c4ce0c3ad34271d07a29
Parents: 83fcc92
Author: Ariel Weisberg <ariel.weisberg@datastax.com>
Authored: Wed Oct 21 15:12:40 2015 -0400
Committer: Sylvain Lebresne <sylvain@datastax.com>
Committed: Thu Oct 29 10:37:54 2015 +0100

----------------------------------------------------------------------
 .../org/apache/cassandra/tools/nodetool/FailureDetectorInfo.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/b154622b/src/java/org/apache/cassandra/tools/nodetool/FailureDetectorInfo.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/nodetool/FailureDetectorInfo.java b/src/java/org/apache/cassandra/tools/nodetool/FailureDetectorInfo.java
index 72c109a..3c0303d 100644
--- a/src/java/org/apache/cassandra/tools/nodetool/FailureDetectorInfo.java
+++ b/src/java/org/apache/cassandra/tools/nodetool/FailureDetectorInfo.java
@@ -34,12 +34,12 @@ public class FailureDetectorInfo extends NodeToolCmd
     public void execute(NodeProbe probe)
     {
         TabularData data = probe.getFailureDetectorPhilValues();
-        System.out.printf("%10s,%16s\n", "Endpoint", "Phi");
+        System.out.printf("%10s,%16s%n", "Endpoint", "Phi");
         for (Object o : data.keySet())
         {
             @SuppressWarnings({ "rawtypes", "unchecked" })
             CompositeData datum = data.get(((List) o).toArray(new Object[((List) o).size()]));
-            System.out.printf("%10s,%16.8f\n",datum.get("Endpoint"), datum.get("PHI"));
+            System.out.printf("%10s,%16.8f%n",datum.get("Endpoint"), datum.get("PHI"));
         }
     }
 }


Mime
View raw message