You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2012/09/19 13:15:36 UTC

[1/4] git commit: Print zero instead of empty values. Patch by Alexey Zotov, reviewed by brandonwilliams for CASSANDRA-4656

Updated Branches:
  refs/heads/cassandra-1.1 e6326e9fd -> b43cc362a
  refs/heads/trunk 1693ee22f -> 96a46771b


Print zero instead of empty values.
Patch by Alexey Zotov, reviewed by brandonwilliams for CASSANDRA-4656


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

Branch: refs/heads/trunk
Commit: 96a46771b287a265a4d9faf61543163e342f6d87
Parents: edd0d6d
Author: Brandon Williams <br...@apache.org>
Authored: Wed Sep 19 06:13:34 2012 -0500
Committer: Brandon Williams <br...@apache.org>
Committed: Wed Sep 19 06:13:34 2012 -0500

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


http://git-wip-us.apache.org/repos/asf/cassandra/blob/96a46771/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 b7dfb68..5f2ac12 100644
--- a/src/java/org/apache/cassandra/tools/NodeCmd.java
+++ b/src/java/org/apache/cassandra/tools/NodeCmd.java
@@ -828,11 +828,11 @@ public class NodeCmd
         {
             output.println(String.format("%-10d%10s%18s%18s%18s%18s",
                                          offsets[i],
-                                         (i < sprh.length ? sprh[i] : ""),
-                                         (i < rwlh.length ? rwlh[i] : ""),
-                                         (i < rrlh.length ? rrlh[i] : ""),
-                                         (i < ersh.length ? ersh[i] : ""),
-                                         (i < ecch.length ? ecch[i] : "")));
+                                         (i < sprh.length ? sprh[i] : "0"),
+                                         (i < rwlh.length ? rwlh[i] : "0"),
+                                         (i < rrlh.length ? rrlh[i] : "0"),
+                                         (i < ersh.length ? ersh[i] : "0"),
+                                         (i < ecch.length ? ecch[i] : "0")));
         }
     }
 
@@ -851,9 +851,9 @@ public class NodeCmd
         {
             output.println(String.format("%-10d%18s%18s%18s",
                                         offsets[i],
-                                        (i < rrlh.length ? rrlh[i] : ""),
-                                        (i < rwlh.length ? rwlh[i] : ""),
-                                        (i < rrnglh.length ? rrnglh[i] : "")));
+                                        (i < rrlh.length ? rrlh[i] : "0"),
+                                        (i < rwlh.length ? rwlh[i] : "0"),
+                                        (i < rrnglh.length ? rrnglh[i] : "0")));
         }
     }