Browse Source

Change stuff and realtime JS made

Guichuan Yu 6 years ago
parent
commit
4caabcd14e
1 changed files with 2 additions and 0 deletions
  1. 2 0
      js/basic.js

+ 2 - 0
js/basic.js

@@ -88,6 +88,7 @@ function first_success(obj, sta) {
         }
         }
         else {
         else {
             failrate[i] = failNumber[i] / (failNumber[i] + passNumber[i]) * 100;
             failrate[i] = failNumber[i] / (failNumber[i] + passNumber[i]) * 100;
+
         }
         }
 
 
     }
     }
@@ -128,6 +129,7 @@ function second_success(obj, sta) {
             else {
             else {
                 hisrate[t] = hisfail[i] / (hispass[i] + hisfail[i]) * 100;
                 hisrate[t] = hisfail[i] / (hispass[i] + hisfail[i]) * 100;
             }
             }
+            hisrate[t]=Math.floor(hisrate[t]);
 
 
 
 
             t++;
             t++;