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:
parent
ee2ece88d8
commit
6c53f19fd4
|
@ -478,7 +478,7 @@ public class PerformanceEvaluation implements HConstants {
|
||||||
static byte [] format(final int number) {
|
static byte [] format(final int number) {
|
||||||
byte [] b = new byte[10];
|
byte [] b = new byte[10];
|
||||||
int d = Math.abs(number);
|
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');
|
b[i] = (byte)((d % 10) + '0');
|
||||||
d /= 10;
|
d /= 10;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue