Эх сурвалжийг харах

Fixed fail ratio logic bug in connlog

tobychui 4 жил өмнө
parent
commit
6b57708966

+ 4 - 4
web/SystemAO/security/connlog.html

@@ -157,12 +157,12 @@
 
             //Do a quick summary
             var failRatio = (failed) / (succ + failed) * 100;
-            if (failRatio > 30){
-                $("#normalStatus").parent().attr("class","ui yellow header");
-                $("#normalStatus").text("LOW RISK");
-            }else if (failRatio > 50){
+            if (failRatio > 70){
                 $("#normalStatus").parent().attr("class","ui red header");
                 $("#normalStatus").text("HIGH RISK");
+            }else if (failRatio > 50){
+                $("#normalStatus").parent().attr("class","ui yellow header");
+                $("#normalStatus").text("LOW RISK");
             }else{
                 // No problem
                 $("#normalStatus").parent().attr("class","ui green header");