Skip to content

Commit 274e1c9

Browse files
committed
Updated the cloudflare.js task
1 parent 8ae4a74 commit 274e1c9

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

server/tasks/cloudflare.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,12 @@ module.exports = async function speedTest() {
204204
result["ping"] = Math.round((await measureLatency())[3]);
205205

206206
const testDown1 = await measureDownload(101000, 10);
207-
const testDown2 = await measureDownload(25001000, 4);
208-
const testDown3 = await measureDownload(100001000, 1);
209-
result["download"] = quartile([...testDown1, ...testDown2, ...testDown3], 0.9).toFixed(2);
207+
const testDown2 = await measureDownload(1001000, 8);
208+
const testDown3 = await measureDownload(10001000, 6);
209+
const testDown4 = await measureDownload(25001000, 4);
210+
const testDown5 = await measureDownload(100001000, 1);
211+
212+
result["download"] = quartile([...testDown1, ...testDown2, ...testDown3, ...testDown4, ...testDown5], 0.9).toFixed(2);
210213

211214
const testUp1 = await measureUpload(11000, 10);
212215
const testUp2 = await measureUpload(101000, 10);

0 commit comments

Comments
 (0)