mirror of
https://github.com/brendan-ch/project-inter-server.git
synced 2026-04-17 16:00:32 +00:00
Add constant MAX_NUM_ENTRIES and adjust PARKING_LOGGING_INTERVAL_MS
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user