X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Ftypes%2FStatistics.ts;h=89511b0291ba22054c70b6f6583960f4ec4b8129;hb=840ca85d7c40a6ee6f3a85a50e68dbea2f90acb8;hp=4c03dd9d73c62c06f35d432bbc18cf9be62ec082;hpb=2f2e04446bb16844a71e8752ae29bff584267029;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/Statistics.ts b/src/types/Statistics.ts index 4c03dd9d..89511b02 100644 --- a/src/types/Statistics.ts +++ b/src/types/Statistics.ts @@ -1,4 +1,5 @@ -import type { CircularArray } from '../utils/index.js' +import type { CircularBuffer } from 'mnemonist' + import type { WorkerData } from '../worker/index.js' import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests.js' @@ -12,7 +13,7 @@ export type StatisticsData = Partial<{ responseCount: number errorCount: number timeMeasurementCount: number - measurementTimeSeries: CircularArray + measurementTimeSeries: CircularBuffer currentTimeMeasurement: number minTimeMeasurement: number maxTimeMeasurement: number