hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject svn commit: r658991 - /hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java
Date Thu, 22 May 2008 03:50:57 GMT
Author: stack
Date: Wed May 21 20:50:57 2008
New Revision: 658991

URL: http://svn.apache.org/viewvc?rev=658991&view=rev
Log:
PE#format was generating non-printable characters

Modified:
    hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java

Modified: hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java
URL: http://svn.apache.org/viewvc/hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java?rev=658991&r1=658990&r2=658991&view=diff
==============================================================================
--- hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java (original)
+++ hadoop/hbase/trunk/src/test/org/apache/hadoop/hbase/PerformanceEvaluation.java Wed May
21 20:50:57 2008
@@ -478,7 +478,7 @@
   static byte [] format(final int number) {
     byte [] b = new byte[10];
     int d = Math.abs(number);
-    for (int i = b.length - 1; i > 0; i--) {
+    for (int i = b.length - 1; i >= 0; i--) {
       b[i] = (byte)((d % 10) + '0');
       d /= 10;
     }



Mime
View raw message