return- int return highestDownloadOnlyResult;
return highestDownloadOnlyResult;
return ourInstance;
return lastResult;
return lastTestData;
return lastUploadOnlyResult;
We are keeping the highest download result, since we want results biased toward fast downloads.paramcurrDownRateInKBytePerSec - result of a "download only" test. if( highestDownloadOnlyResult<currDownRateInKBytePerSec ){ highestDownloadOnlyResult=currDownRateInKBytePerSec; }
if( highestDownloadOnlyResult<currDownRateInKBytePerSec ){ highestDownloadOnlyResult=currDownRateInKBytePerSec; }
lastTestData = text;
Record the last upload only result, but the minimum allowed result is 20 kbytes/sec.paramcurrUpRateInKBytesPerSec - //The lowest upload rate allowed in 20 kB/s. if(currUpRateInKBytesPerSec<20){ currUpRateInKBytesPerSec=20; } lastUploadOnlyResult = currUpRateInKBytesPerSec;
//The lowest upload rate allowed in 20 kB/s. if(currUpRateInKBytesPerSec<20){ currUpRateInKBytesPerSec=20; } lastUploadOnlyResult = currUpRateInKBytesPerSec;
lastResult = result;