Fix maximum power available for AC charging stations
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 18 Mar 2022 15:31:46 +0000 (16:31 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 18 Mar 2022 15:31:46 +0000 (16:31 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts

index 55b58794c7be56faf6223c8344bc64b729f10756..5393aebdbccf881cad95bea23c4edc3e0ad6a43c 100644 (file)
@@ -240,7 +240,7 @@ export default class ChargingStation {
           ? ACElectricUtils.powerTotal(
               this.getNumberOfPhases(),
               this.getVoltageOut(),
-              this.getAmperageLimitation()
+              this.getAmperageLimitation() * this.getNumberOfConnectors()
             )
           : DCElectricUtils.power(this.getVoltageOut(), this.getAmperageLimitation());
     }