Skip to content

Commit

Permalink
default to 70
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego Rodriguez Baquero committed Oct 2, 2023
1 parent acf39a9 commit 935bda1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/contexts/NodesContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type NodesContextType = {
const initialValues = {
nodes: [],
setNodes: () => {},
globalStats: { medianTTFB: 0 },
globalStats: { medianTTFB: 70 },
};

const NodesContext = createContext<NodesContextType>(initialValues);
Expand All @@ -42,7 +42,7 @@ export const NodesContextProvider = ({
const decoder = new TextDecoder();
const reader = response.body?.getReader();
const nodesMap = new Map<string, Node>();
const medianTTFB = Number(response.headers.get("x-saturn-median-ttfb")) || 0;
const medianTTFB = Number(response.headers.get("x-saturn-median-ttfb")) || 70;

setGlobalStats({ medianTTFB });

Expand Down

0 comments on commit 935bda1

Please sign in to comment.