Add constant MAX_NUM_ENTRIES and adjust PARKING_LOGGING_INTERVAL_MS

This commit is contained in:
2025-07-01 21:47:15 -04:00
parent 8fb296027d
commit 4758d566da

View File

@@ -7,7 +7,12 @@ import { HistoricalParkingAverageQueryResult } from "./ParkingGetterRepository";
type ParkingStructureID = string;
export const PARKING_LOGGING_INTERVAL_MS = 60000;
// Every 10 minutes
// 6x per hour * 24x per day * 7x per week = 1008 entries for one week
export const PARKING_LOGGING_INTERVAL_MS = 600000;
// This will last two weeks
export const MAX_NUM_ENTRIES = 2016;
export class InMemoryParkingRepository implements ParkingGetterSetterRepository {
private dataLastAdded: Map<ParkingStructureID, Date> = new Map();