incubator-blur-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amccu...@apache.org
Subject [06/27] git commit: Fixed line wrapping problem.
Date Fri, 09 Aug 2013 17:24:11 GMT
Fixed line wrapping problem.


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

Branch: refs/heads/0.2.0-newtypesystem
Commit: e4cdf5d0c228e34164ee2ac427ef4e495593689c
Parents: 4cd1a77
Author: Aaron McCurry <amccurry@gmail.com>
Authored: Wed Aug 7 10:15:50 2013 -0400
Committer: Aaron McCurry <amccurry@gmail.com>
Committed: Wed Aug 7 10:15:50 2013 -0400

----------------------------------------------------------------------
 blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-blur/blob/e4cdf5d0/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
----------------------------------------------------------------------
diff --git a/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java b/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
index 2280e61..f325bdb 100644
--- a/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
+++ b/blur-shell/src/main/java/org/apache/blur/shell/TopCommand.java
@@ -160,7 +160,6 @@ public class TopCommand extends Command {
     for (int i = 1; i < labels.length; i++) {
       header.append(" %10s");
     }
-    header.append("%n");
 
     do {
       StringBuilder output = new StringBuilder();
@@ -169,7 +168,7 @@ public class TopCommand extends Command {
       } else if (help.get()) {
         showHelp(output, labels, helpMap);
       } else {
-        output.append(truncate(String.format(header.toString(), (Object[]) labels)));
+        output.append(truncate(String.format(header.toString(), (Object[]) labels)) + "\n");
         for (Entry<String, AtomicReference<Client>> e : new TreeMap<String,
AtomicReference<Client>>(shardClients)
             .entrySet()) {
           String shardServer = e.getKey();
@@ -195,8 +194,7 @@ public class TopCommand extends Command {
               cols[c++] = humanize(value, sizes.contains(mn));
               sb.append(" %10s");
             }
-            sb.append("%n");
-            output.append(truncate(String.format(sb.toString(), cols)));
+            output.append(truncate(String.format(sb.toString(), cols)) + "\n");
           }
         }
       }


Mime
View raw message