HDFS-11928. Segment overflow in FileDistributionCalculator. Contributed by LiXin Ge.

This commit is contained in:
Arpit Agarwal 2017-06-05 13:21:22 -07:00 committed by Xiaoyu Yao
parent 14f782b6b9
commit b55a34639d
1 changed files with 2 additions and 2 deletions

View File

@ -160,8 +160,8 @@ final class FileDistributionCalculator {
+ StringUtils.byteDesc(((long) (i == 0 ? 0 : i - 1) * steps))
+ ", "
+ StringUtils.byteDesc((long)
(i == distribution.length - 1 ? maxFileSize : i * steps))
+ "]\t" + distribution[i]);
(i == distribution.length - 1 ? maxFileSize :
(long) i * steps)) + "]\t" + distribution[i]);
} else {
out.print(((long) i * steps) + "\t" + distribution[i]);
}