We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 379b94f commit 9959a5bCopy full SHA for 9959a5b
src/components/QueryExecutionStatus/useElapsedDuration.ts
@@ -30,10 +30,7 @@ export function useElapsedDuration({
30
31
const getJitteredFastDelay = React.useCallback(() => {
32
const jitter = Math.floor((Math.random() * 2 - 1) * FAST_REFRESH_JITTER_MS);
33
- const delay = FAST_REFRESH_MS + jitter;
34
- const min = FAST_REFRESH_MS - FAST_REFRESH_JITTER_MS;
35
- const max = FAST_REFRESH_MS + FAST_REFRESH_JITTER_MS;
36
- return Math.max(min, Math.min(max, delay));
+ return FAST_REFRESH_MS + jitter;
37
}, []);
38
39
const timerRef = React.useRef<ReturnType<typeof setTimeout> | undefined>(undefined);
0 commit comments