Преглед на файлове

use image from our server, this fixes the time mismatch issue i was facing earlier due to diff url/image

Aakansha Doshi преди 4 години
родител
ревизия
92c2a42edf
променени са 1 файла, в които са добавени 2 реда и са изтрити 3 реда
  1. 2 3
      src/networkStats.ts

+ 2 - 3
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;