Przeglądaj źródła

Tweaked the formula again

adolfintel 6 lat temu
rodzic
commit
b9bccc3ed0
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      speedtest_worker.js
  2. 0 0
      speedtest_worker.min.js

+ 2 - 2
speedtest_worker.js

@@ -277,7 +277,7 @@ function dlTest (done) {
       var speed = totLoaded / (t / 1000.0)
       var speed = totLoaded / (t / 1000.0)
 	  if(settings.time_auto){
 	  if(settings.time_auto){
 		  //decide how much to shorten the test. Every 200ms, the test is shortened by the bonusT calculated here
 		  //decide how much to shorten the test. Every 200ms, the test is shortened by the bonusT calculated here
-		  var bonus=8*speed/100000
+		  var bonus=6.4*speed/100000
 		  bonusT+=bonus>800?800:bonus
 		  bonusT+=bonus>800?800:bonus
 	  }
 	  }
 	  //update status
 	  //update status
@@ -405,7 +405,7 @@ function ulTest (done) {
       var speed = totLoaded / (t / 1000.0)
       var speed = totLoaded / (t / 1000.0)
 	  if(settings.time_auto){
 	  if(settings.time_auto){
 		  //decide how much to shorten the test. Every 200ms, the test is shortened by the bonusT calculated here
 		  //decide how much to shorten the test. Every 200ms, the test is shortened by the bonusT calculated here
-		  var bonus=8*speed/100000
+		  var bonus=6.4*speed/100000
 		  bonusT+=bonus>800?800:bonus
 		  bonusT+=bonus>800?800:bonus
 	  }
 	  }
 	  //update status
 	  //update status

Plik diff jest za duży
+ 0 - 0
speedtest_worker.min.js


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików