adolfintel 7 anni fa
parent
commit
228d137a5a
2 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      speedtest_worker.js
  2. 0 0
      speedtest_worker.min.js

+ 1 - 1
speedtest_worker.js

@@ -442,7 +442,7 @@ function pingTest (done) {
 		}
         var instjitter = Math.abs(instspd - prevInstspd)
         if (i === 1) ping = instspd; /* first ping, can't tell jitter yet*/ else {
-          ping = instspd < ping ? ping : ping * 0.8 + instspd * 0.2 // update ping, weighted average. if the instant ping is lower than the current average, it is set to that value instead of averaging
+          ping = instspd < ping ? instspd : ping * 0.8 + instspd * 0.2 // update ping, weighted average. if the instant ping is lower than the current average, it is set to that value instead of averaging
           jitter = instjitter > jitter ? (jitter * 0.3 + instjitter * 0.7) : (jitter * 0.8 + instjitter * 0.2) // update jitter, weighted average. spikes in ping values are given more weight.
         }
         prevInstspd = instspd

File diff suppressed because it is too large
+ 0 - 0
speedtest_worker.min.js


Some files were not shown because too many files changed in this diff