My stupidity is beyond comprehension
This commit is contained in:
parent
1f76b8a754
commit
f5a275badc
|
@ -261,7 +261,7 @@ function dlTest (done) {
|
||||||
// every 200ms, update dlStatus
|
// every 200ms, update dlStatus
|
||||||
interval = setInterval(function () {
|
interval = setInterval(function () {
|
||||||
tverb('DL: '+dlStatus+(graceTimeDone?'':' (in grace time)'))
|
tverb('DL: '+dlStatus+(graceTimeDone?'':' (in grace time)'))
|
||||||
var t = new Date().getTime() - startT + bonusT
|
var t = new Date().getTime() - startT
|
||||||
if (graceTimeDone) dlProgress = t / (settings.time_dl_max * 1000)
|
if (graceTimeDone) dlProgress = t / (settings.time_dl_max * 1000)
|
||||||
if (t < 200) return
|
if (t < 200) return
|
||||||
if (!graceTimeDone){
|
if (!graceTimeDone){
|
||||||
|
@ -282,7 +282,7 @@ function dlTest (done) {
|
||||||
}
|
}
|
||||||
//update status
|
//update status
|
||||||
dlStatus = ((speed * 8 * settings.overheadCompensationFactor)/(settings.useMebibits?1048576:1000000)).toFixed(2) // speed is multiplied by 8 to go from bytes to bits, overhead compensation is applied, then everything is divided by 1048576 or 1000000 to go to megabits/mebibits
|
dlStatus = ((speed * 8 * settings.overheadCompensationFactor)/(settings.useMebibits?1048576:1000000)).toFixed(2) // speed is multiplied by 8 to go from bytes to bits, overhead compensation is applied, then everything is divided by 1048576 or 1000000 to go to megabits/mebibits
|
||||||
if (((t / 1000.0) > settings.time_dl_max) || failed) { // test is over, stop streams and timer
|
if ((((t+ bonusT) / 1000.0) > settings.time_dl_max) || failed) { // test is over, stop streams and timer
|
||||||
if (failed || isNaN(dlStatus)) dlStatus = 'Fail'
|
if (failed || isNaN(dlStatus)) dlStatus = 'Fail'
|
||||||
clearRequests()
|
clearRequests()
|
||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
|
@ -389,7 +389,7 @@ function ulTest (done) {
|
||||||
// every 200ms, update ulStatus
|
// every 200ms, update ulStatus
|
||||||
interval = setInterval(function () {
|
interval = setInterval(function () {
|
||||||
tverb('UL: '+ulStatus+(graceTimeDone?'':' (in grace time)'))
|
tverb('UL: '+ulStatus+(graceTimeDone?'':' (in grace time)'))
|
||||||
var t = new Date().getTime() - startT + bonusT
|
var t = new Date().getTime() - startT
|
||||||
if (graceTimeDone) ulProgress = t / (settings.time_ul_max * 1000)
|
if (graceTimeDone) ulProgress = t / (settings.time_ul_max * 1000)
|
||||||
if (t < 200) return
|
if (t < 200) return
|
||||||
if (!graceTimeDone){
|
if (!graceTimeDone){
|
||||||
|
@ -410,7 +410,7 @@ function ulTest (done) {
|
||||||
}
|
}
|
||||||
//update status
|
//update status
|
||||||
ulStatus = ((speed * 8 * settings.overheadCompensationFactor)/(settings.useMebibits?1048576:1000000)).toFixed(2) // speed is multiplied by 8 to go from bytes to bits, overhead compensation is applied, then everything is divided by 1048576 or 1000000 to go to megabits/mebibits
|
ulStatus = ((speed * 8 * settings.overheadCompensationFactor)/(settings.useMebibits?1048576:1000000)).toFixed(2) // speed is multiplied by 8 to go from bytes to bits, overhead compensation is applied, then everything is divided by 1048576 or 1000000 to go to megabits/mebibits
|
||||||
if (((t / 1000.0) > settings.time_ul_max) || failed) { // test is over, stop streams and timer
|
if ((((t + bonusT) / 1000.0) > settings.time_ul_max) || failed) { // test is over, stop streams and timer
|
||||||
if (failed || isNaN(ulStatus)) ulStatus = 'Fail'
|
if (failed || isNaN(ulStatus)) ulStatus = 'Fail'
|
||||||
clearRequests()
|
clearRequests()
|
||||||
clearInterval(interval)
|
clearInterval(interval)
|
||||||
|
|
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