Increased time bonus
This commit is contained in:
parent
856b6c4488
commit
e444353161
|
@ -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/1000000
|
var bonus=8*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/1000000
|
var bonus=8*speed/100000
|
||||||
bonusT+=bonus>800?800:bonus
|
bonusT+=bonus>800?800:bonus
|
||||||
}
|
}
|
||||||
//update status
|
//update status
|
||||||
|
|
2
speedtest_worker.min.js
vendored
2
speedtest_worker.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue