cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbros...@apache.org
Subject git commit: use %n for newline in format
Date Fri, 02 May 2014 00:25:51 GMT
Repository: cassandra
Updated Branches:
  refs/heads/cassandra-2.1 cc77ac8b6 -> 18d3b52d4


use %n for newline in format


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

Branch: refs/heads/cassandra-2.1
Commit: 18d3b52d478c31a9091bb328f8cf5adaa7879a66
Parents: cc77ac8
Author: Dave Brosius <dbrosius@mebigfatguy.com>
Authored: Thu May 1 20:24:53 2014 -0400
Committer: Dave Brosius <dbrosius@mebigfatguy.com>
Committed: Thu May 1 20:24:53 2014 -0400

----------------------------------------------------------------------
 src/java/org/apache/cassandra/tools/BulkLoader.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/18d3b52d/src/java/org/apache/cassandra/tools/BulkLoader.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/tools/BulkLoader.java b/src/java/org/apache/cassandra/tools/BulkLoader.java
index 6042f92..74b803a 100644
--- a/src/java/org/apache/cassandra/tools/BulkLoader.java
+++ b/src/java/org/apache/cassandra/tools/BulkLoader.java
@@ -234,12 +234,12 @@ public class BulkLoader
             int average = mbPerSec(lastProgress, (end - start));
             StringBuilder sb = new StringBuilder();
             sb.append("\nSummary statistics: \n");
-            sb.append(String.format("   %-30s: %-10d\n", "Connections per host: ", connectionsPerHost));
-            sb.append(String.format("   %-30s: %-10d\n", "Total files transferred: ", totalFiles));
-            sb.append(String.format("   %-30s: %-10d\n", "Total bytes transferred: ", lastProgress));
-            sb.append(String.format("   %-30s: %-10d\n", "Total duration (ms): ", durationMS));
-            sb.append(String.format("   %-30s: %-10d\n", "Average transfer rate (MB/s): ",
+ average));
-            sb.append(String.format("   %-30s: %-10d\n", "Peak transfer rate (MB/s): ", +
peak));
+            sb.append(String.format("   %-30s: %-10d%n", "Connections per host: ", connectionsPerHost));
+            sb.append(String.format("   %-30s: %-10d%n", "Total files transferred: ", totalFiles));
+            sb.append(String.format("   %-30s: %-10d%n", "Total bytes transferred: ", lastProgress));
+            sb.append(String.format("   %-30s: %-10d%n", "Total duration (ms): ", durationMS));
+            sb.append(String.format("   %-30s: %-10d%n", "Average transfer rate (MB/s): ",
+ average));
+            sb.append(String.format("   %-30s: %-10d%n", "Peak transfer rate (MB/s): ", +
peak));
             System.err.println(sb.toString());
         }
     }


Mime
View raw message