Jelajahi Sumber

Change stuff and realtime JS made

Guichuan Yu 6 tahun lalu
induk
melakukan
4caabcd14e
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      js/basic.js

+ 2 - 0
js/basic.js

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