diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FileDistributionCalculator.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FileDistributionCalculator.java index 71fb822eed..25a7bbe40b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FileDistributionCalculator.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FileDistributionCalculator.java @@ -160,8 +160,8 @@ private void output() { + 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]); }