瀏覽代碼

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

Haohui Mai 9 年之前
父節點
當前提交
3b85bd7c33

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