Skip to content

Commit e4faee4

Browse files
committed
evan comments
1 parent 3749b53 commit e4faee4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/server/GameServer.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ export class GameServer {
8787

8888
private lobbyInfoIntervalId: ReturnType<typeof setInterval> | null = null;
8989

90+
private visibleAt?: number;
91+
9092
constructor(
9193
public readonly id: string,
9294
readonly log_: Logger,
@@ -559,10 +561,9 @@ export class GameServer {
559561
}
560562
}
561563

562-
private visibleAt?: number;
563-
564564
public setStartsAt(startsAt: number) {
565565
this.startsAt = startsAt;
566+
// Record when the lobby first became visible to players, used to measure lobby fill time.
566567
this.visibleAt ??= Date.now();
567568
}
568569

0 commit comments

Comments
 (0)