소스 검색

HDFS-9193. Fix incorrect references the usages of the DN in dfshealth.js. Contributed by Chang Li.

Haohui Mai 9 년 전
부모
커밋
3b85bd7c33
2개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 0
      hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
  2. 1 1
      hadoop-hdfs-project/hadoop-hdfs/src/main/webapps/hdfs/dfshealth.js

+ 3 - 0
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

+ 1 - 1
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";