increases wait time estimation window to 5min
This commit is contained in:
parent
01eee61e8b
commit
03616f4bbc
|
@ -234,7 +234,7 @@ export function trackWaitTime(req: Request) {
|
||||||
/** Returns average wait time in milliseconds. */
|
/** Returns average wait time in milliseconds. */
|
||||||
export function getEstimatedWaitTime() {
|
export function getEstimatedWaitTime() {
|
||||||
const now = Date.now();
|
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) {
|
if (recentWaits.length === 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue