X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Futils%2FPerformanceStatistics.ts;h=9594fb3f24f1e1d989f0694c550c7b1ecd2db75a;hb=c6f76013a8235e21413c44f8ed2e9d4f15299657;hp=d7a4388edf3f95c7d6776c193e980064ba3c7e9d;hpb=54b1efe020d2472d36c5bc92ae09e23d75ab0947;p=e-mobility-charging-stations-simulator.git diff --git a/src/utils/PerformanceStatistics.ts b/src/utils/PerformanceStatistics.ts index d7a4388e..9594fb3f 100644 --- a/src/utils/PerformanceStatistics.ts +++ b/src/utils/PerformanceStatistics.ts @@ -113,9 +113,9 @@ export default class PerformanceStatistics { private addPerformanceTimer(command: RequestCommand | IncomingRequestCommand, duration: number): void { // Map to proper command name const MAPCOMMAND = { - sendMeterValues: 'MeterValues', - startTransaction: 'StartTransaction', - stopTransaction: 'StopTransaction', + sendMeterValues: RequestCommand.METER_VALUES, + startTransaction: RequestCommand.START_TRANSACTION, + stopTransaction: RequestCommand.STOP_TRANSACTION, }; if (MAPCOMMAND[command]) { command = MAPCOMMAND[command] as RequestCommand | IncomingRequestCommand;