From 92c2a42edfa96fb54d3dc0e6ff4a0470908afb47 Mon Sep 17 00:00:00 2001 From: Aakansha Doshi Date: Sun, 7 Feb 2021 15:04:24 +0530 Subject: [PATCH] use image from our server, this fixes the time mismatch issue i was facing earlier due to diff url/image --- src/networkStats.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/networkStats.ts b/src/networkStats.ts index 4dd79b8d2..1e359508a 100644 --- a/src/networkStats.ts +++ b/src/networkStats.ts @@ -1,6 +1,5 @@ -const IMAGE_URL = - "https://user-images.githubusercontent.com/11256141/107128597-feb46700-68e4-11eb-80f7-1d259cc0151f.png"; -const IMAGE_SIZE = 2666; // in bytes +const IMAGE_URL = "https://portal.excalidraw.com/test128.png"; +const IMAGE_SIZE = 35747; // in bytes const calculateSpeed = (startTime: number, endTime: number) => { const duration = (endTime - startTime) / 1000; const imageSizeInBits = IMAGE_SIZE * 8;