diff --git a/src/repositories/InMemoryParkingRepository.ts b/src/repositories/InMemoryParkingRepository.ts index db0e543..96488b8 100644 --- a/src/repositories/InMemoryParkingRepository.ts +++ b/src/repositories/InMemoryParkingRepository.ts @@ -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 = new Map();