PE#format was generating non-printable characters

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@658991 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2008-05-22 03:50:57 +00:00
parent ee2ece88d8
commit 6c53f19fd4
1 changed files with 1 additions and 1 deletions

View File

@ -478,7 +478,7 @@ public class PerformanceEvaluation implements HConstants {
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;
}