X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fperformance%2FPerformanceStatistics.ts;fp=src%2Fperformance%2FPerformanceStatistics.ts;h=3bb72ffa5f711b2b6c3c2af6d3e2501454503f45;hb=94032f3e2e158defa0b264390c1155eb90c29c6a;hp=88bb29d04d97d9aa315df258dc0923334d803d1e;hpb=5f83ff87e120fdf6d111dcf935656a96138554ec;p=e-mobility-charging-stations-simulator.git diff --git a/src/performance/PerformanceStatistics.ts b/src/performance/PerformanceStatistics.ts index 88bb29d0..3bb72ffa 100644 --- a/src/performance/PerformanceStatistics.ts +++ b/src/performance/PerformanceStatistics.ts @@ -14,6 +14,7 @@ import { MessageType, type RequestCommand, type Statistics, + type StatisticsData, type StorageConfiguration, type TimestampedData } from '../types/index.js' @@ -204,7 +205,9 @@ export class PerformanceStatistics { private logStatistics (): void { logger.info(this.logPrefix(), { ...this.statistics, - statisticsData: JSONStringifyWithMapSupport(this.statistics.statisticsData) + statisticsData: JSON.parse( + JSONStringifyWithMapSupport(this.statistics.statisticsData) + ) as Map }) }