Skip to content

Commit 27cbb10

Browse files
authored
Estimate waiting room wait as 24 seconds per spot ahead (#516)
1 parent 6befd51 commit 27cbb10

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

web/src/server/free-session/__tests__/session-view.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { estimateWaitMs, toSessionStateResponse } from '../session-view'
44

55
import type { InternalSessionRow } from '../types'
66

7-
const WAIT_PER_SPOT_MS = 60_000
7+
const WAIT_PER_SPOT_MS = 24_000
88
const GRACE_MS = 30 * 60_000
99

1010
function row(overrides: Partial<InternalSessionRow> = {}): InternalSessionRow {

web/src/server/free-session/session-view.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ export function toSessionStateResponse(params: {
5959
return null
6060
}
6161

62-
const WAIT_MS_PER_SPOT_AHEAD = 60_000
62+
const WAIT_MS_PER_SPOT_AHEAD = 24_000
6363

6464
/**
65-
* Rough wait-time estimate shown to queued users: one minute per spot ahead.
65+
* Rough wait-time estimate shown to queued users: 24 seconds per spot ahead.
6666
* Position 1 → 0ms (next tick picks you up).
6767
*/
6868
export function estimateWaitMs(params: { position: number }): number {

0 commit comments

Comments
 (0)