Repository: hadoop Updated Branches: refs/heads/trunk 7136e8c55 -> 3b85bd7c3
HDFS-9193. Fix incorrect references the usages of the DN in dfshealth.js. Contributed by Chang Li. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/3b85bd7c Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/3b85bd7c Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/3b85bd7c Branch: refs/heads/trunk Commit: 3b85bd7c3391719624a261f061a67cc4356be477 Parents: 7136e8c Author: Haohui Mai <[email protected]> Authored: Sat Oct 3 11:44:34 2015 -0700 Committer: Haohui Mai <[email protected]> Committed: Sat Oct 3 11:44:34 2015 -0700 ---------------------------------------------------------------------- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/3b85bd7c/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 3861673..0957680 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1483,6 +1483,9 @@ Release 2.8.0 - UNRELEASED HDFS-9191. Typo in Hdfs.java. NoSuchElementException is misspelled. (Catherine Palmer via jghoman) + HDFS-9193. Fix incorrect references the usages of the DN in dfshealth.js. + (Chang Li via wheat9) + Release 2.7.2 - UNRELEASED INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/3b85bd7c/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js ---------------------------------------------------------------------- diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js index cc3afcd..e7245df 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js @@ -186,7 +186,7 @@ var r = null; if (v < 70) { r = 'progress-bar-success'; - } else if (u.usedPercentage < 85) { + } else if (v < 85) { r = 'progress-bar-warning'; } else { r = "progress-bar-danger";
