README.md: refinement
[e-mobility-charging-stations-simulator.git] / src / utils / PerformanceStatistics.ts
index d7a4388edf3f95c7d6776c193e980064ba3c7e9d..9594fb3f24f1e1d989f0694c550c7b1ecd2db75a 100644 (file)
@@ -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;