Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { estimateWaitMs, toSessionStateResponse } from '../session-view'

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

const WAIT_PER_SPOT_MS = 60_000
const WAIT_PER_SPOT_MS = 24_000
const GRACE_MS = 30 * 60_000

function row(overrides: Partial<InternalSessionRow> = {}): InternalSessionRow {
Expand Down
4 changes: 2 additions & 2 deletions web/src/server/free-session/session-view.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ export function toSessionStateResponse(params: {
return null
}

const WAIT_MS_PER_SPOT_AHEAD = 60_000
const WAIT_MS_PER_SPOT_AHEAD = 24_000

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