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 4420985 commit 5f7cce7Copy full SHA for 5f7cce7
site/src/components/WorkspaceBuildProgress/WorkspaceBuildProgress.tsx
@@ -42,7 +42,7 @@ const estimateFinish = (
42
return isNaN(max) ? 0 : max
43
}
44
45
- const lowGuess = secondsLeft(p50)
+ // Under-promise, over-deliver with the 95th percentile estimate.
46
const highGuess = secondsLeft(p95)
47
48
const anyMomentNow: [number | undefined, string] = [
@@ -54,11 +54,7 @@ const estimateFinish = (
54
if (highGuess <= 0) {
55
return anyMomentNow
56
57
- const diff = highGuess - lowGuess
58
- if (diff < 3) {
59
- // If there is sufficient consistency, keep display simple.
60
- return [p50percent, `${highGuess} seconds remaining...`]
61
- }
+
62
return [p50percent, `Up to ${highGuess} seconds remaining...`]
63
64
0 commit comments