fix(simulator): calculate LRU cache capacity dynamically at startup to
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 2 Feb 2023 19:17:03 +0000 (20:17 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 2 Feb 2023 19:19:14 +0000 (20:19 +0100)
commitd1c99c59787e98b3954760fbc208a5dfbc3d8f57
treea00046c8d740ce9c6ff5644aafe1ea5cc7fafd12
parent1e49f7aab4d2a893d548a74b1afbb067ec31552c
fix(simulator): calculate LRU cache capacity dynamically at startup to
avoid heavy evictions load

Properly calculate the number of charging stations and templates in use

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/charging-station/Bootstrap.ts
src/charging-station/SharedLRUCache.ts