X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fperformance%2FPerformanceStatistics.ts;h=3bb72ffa5f711b2b6c3c2af6d3e2501454503f45;hb=94032f3e2e158defa0b264390c1155eb90c29c6a;hp=e8740d29fa511de737570328dcdfbd025e838c84;hpb=a974c8e4b8a98c9450be49546a77be0d03e9f512;p=e-mobility-charging-stations-simulator.git diff --git a/src/performance/PerformanceStatistics.ts b/src/performance/PerformanceStatistics.ts index e8740d29..3bb72ffa 100644 --- a/src/performance/PerformanceStatistics.ts +++ b/src/performance/PerformanceStatistics.ts @@ -1,4 +1,4 @@ -// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved. +// Partial Copyright Jerome Benoit. 2021-2024. All Rights Reserved. import { type PerformanceEntry, PerformanceObserver, performance } from 'node:perf_hooks' import type { URL } from 'node:url' @@ -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 }) }