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 xy...@apache.org on 2017/06/08 20:06:14 UTC
[32/50] [abbrv] 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/b55a3463
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b55a3463
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b55a3463
Branch: refs/heads/HDFS-7240
Commit: b55a34639d73eabc2978bdcb12231f9ed19e8106
Parents: 14f782b
Author: Arpit Agarwal <ar...@apache.org>
Authored: Mon Jun 5 13:21:22 2017 -0700
Committer: Xiaoyu Yao <xy...@apache.org>
Committed: Thu Jun 8 10:44:51 2017 -0700
----------------------------------------------------------------------
.../tools/offlineImageViewer/FileDistributionCalculator.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/b55a3463/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