You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ar...@apache.org on 2017/06/05 20:21:57 UTC
[2/2] hadoop git commit: HDFS-11928. Segment overflow in
FileDistributionCalculator. Contributed by LiXin Ge.
HDFS-11928. Segment overflow in FileDistributionCalculator. Contributed by LiXin Ge.
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/baff06f0
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/baff06f0
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/baff06f0
Branch: refs/heads/branch-2
Commit: baff06f01932eb4b7c824037567f679c9f82e5d2
Parents: 867026d
Author: Arpit Agarwal <ar...@apache.org>
Authored: Mon Jun 5 13:21:22 2017 -0700
Committer: Arpit Agarwal <ar...@apache.org>
Committed: Mon Jun 5 13:21:35 2017 -0700
----------------------------------------------------------------------
.../tools/offlineImageViewer/FileDistributionCalculator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/baff06f0/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FileDistributionCalculator.java
----------------------------------------------------------------------
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 71fb822..25a7bbe 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 @@ 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]);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org