From 718fada493d7afc40a5119f6f0c2fe92501d9791 Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Wed, 28 Apr 2021 14:32:56 +0000 Subject: [PATCH] fix(core): update --- ts/smartnetwork.classes.cloudflarespeed.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/ts/smartnetwork.classes.cloudflarespeed.ts b/ts/smartnetwork.classes.cloudflarespeed.ts index 7a1f0f1..d6d9e97 100644 --- a/ts/smartnetwork.classes.cloudflarespeed.ts +++ b/ts/smartnetwork.classes.cloudflarespeed.ts @@ -10,19 +10,16 @@ export class CloudflareSpeed { const serverLocations = await this.fetchServerLocations(); const cgiData = await this.fetchCfCdnCgiTrace(); + // lets test the download speed const testDown1 = await this.measureDownload(101000, 10); - const testDown2 = await this.measureDownload(1001000, 8); - const testDown3 = await this.measureDownload(10001000, 6); - const testDown4 = await this.measureDownload(25001000, 4); - const testDown5 = await this.measureDownload(100001000, 1); - const downloadTests = [...testDown1, ...testDown2, ...testDown3, ...testDown4, ...testDown5]; const speedDownload = stats.quartile(downloadTests, 0.9).toFixed(2); + // lets test the upload speed const testUp1 = await this.measureUpload(11000, 10); const testUp2 = await this.measureUpload(101000, 10); const testUp3 = await this.measureUpload(1001000, 8);