Parcourir la source

Increased time bonus

adolfintel il y a 7 ans
Parent
commit
e444353161
2 fichiers modifiés avec 2 ajouts et 2 suppressions
  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)
 	  if(settings.time_auto){
 		  //decide how much to shorten the test. Every 200ms, the test is shortened by the bonusT calculated here
-		  var bonus=8*speed/1000000
+		  var bonus=8*speed/100000
 		  bonusT+=bonus>800?800:bonus
 	  }
 	  //update status
@@ -405,7 +405,7 @@ function ulTest (done) {
       var speed = totLoaded / (t / 1000.0)
 	  if(settings.time_auto){
 		  //decide how much to shorten the test. Every 200ms, the test is shortened by the bonusT calculated here
-		  var bonus=8*speed/1000000
+		  var bonus=8*speed/100000
 		  bonusT+=bonus>800?800:bonus
 	  }
 	  //update status

Fichier diff supprimé car celui-ci est trop grand
+ 0 - 0
speedtest_worker.min.js


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff