Updated Branches:
  refs/heads/trunk 2a3076bf7 -> 4f5d072a2

use %n rather than \n in printf calls


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

Branch: refs/heads/trunk
Commit: 4f5d072a28ecca654eabbc9a88f5a18a51c4e0b3
Parents: 2a3076b
Author: Dave Brosius <dbros...@apache.org>
Authored: Wed Oct 10 23:53:31 2012 -0400
Committer: Dave Brosius <dbros...@apache.org>
Committed: Wed Oct 10 23:53:31 2012 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/NodeCmd.java |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/4f5d072a/src/java/org/apache/cassandra/tools/NodeCmd.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/NodeCmd.java 
b/src/java/org/apache/cassandra/tools/NodeCmd.java
index f18a93f..340219e 100644
--- a/src/java/org/apache/cassandra/tools/NodeCmd.java
+++ b/src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -897,15 +897,15 @@ public class NodeCmd
                                                                              
percentileLatency);
 
                     if(r == 1 && w == 1) {
-                        output.printf("%dms after a given write, with maximum 
version staleness of k=%d\n", timeAfterWrite, numVersions);
+                        output.printf("%dms after a given write, with maximum 
version staleness of k=%d%n", timeAfterWrite, numVersions);
                     }
 
-                    output.printf("N=%d, R=%d, W=%d\n", replicationFactor, r, 
w);
-                    output.printf("Probability of consistent reads: %f\n", 
result.getConsistencyProbability());
-                    output.printf("Average read latency: %fms (%.3fth %%ile 
%dms)\n", result.getAverageReadLatency(),
+                    output.printf("N=%d, R=%d, W=%d%n", replicationFactor, r, 
w);
+                    output.printf("Probability of consistent reads: %f%n", 
result.getConsistencyProbability());
+                    output.printf("Average read latency: %fms (%.3fth %%ile 
%dms)%n", result.getAverageReadLatency(),
                                                                                
    result.getPercentileReadLatencyPercentile()*100,
                                                                                
    result.getPercentileReadLatencyValue());
-                    output.printf("Average write latency: %fms (%.3fth %%ile 
%dms)\n\n", result.getAverageWriteLatency(),
+                    output.printf("Average write latency: %fms (%.3fth %%ile 
%dms)%n%n", result.getAverageWriteLatency(),
                                                                                
       result.getPercentileWriteLatencyPercentile()*100,
                                                                                
       result.getPercentileWriteLatencyValue());
                 } catch (Exception e) {

Reply via email to