increases wait time estimation window to 5min

This commit is contained in:
nai-degen 2023-05-23 11:26:40 -05:00
parent 01eee61e8b
commit 03616f4bbc
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ export function trackWaitTime(req: Request) {
/** Returns average wait time in milliseconds. */
export function getEstimatedWaitTime() {
const now = Date.now();
const recentWaits = waitTimes.filter((wt) => now - wt.end < 180 * 1000);
const recentWaits = waitTimes.filter((wt) => now - wt.end < 300 * 1000);
if (recentWaits.length === 0) {
return 0;
}