X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcharging-station%2FBootstrap.ts;h=5b23676f24e39049cedf24f7581132f5b265a925;hb=88702641858698449f0388a3fae2d39367fe1c3a;hp=731cc477d7a406d8165c8764ea851bc06115bafe;hpb=66a7748ddeda8c94d7562a1ce58d440319654a4c;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index 731cc477..5b23676f 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -36,7 +36,6 @@ import { handleUncaughtException, handleUnhandledRejection, isNotEmptyArray, - isNullOrUndefined, logPrefix, logger } from '../utils/index.js' @@ -48,7 +47,7 @@ enum exitCodes { succeeded = 0, missingChargingStationsConfiguration = 1, noChargingStationTemplates = 2, - gracefulShutdownError = 3 + gracefulShutdownError = 3, } export class Bootstrap extends EventEmitter { @@ -156,7 +155,7 @@ export class Bootstrap extends EventEmitter { ? `/${workerConfiguration.poolMaxSize?.toString()}` : '' } worker(s) concurrently running in '${workerConfiguration.processType}' mode${ - !isNullOrUndefined(this.workerImplementation?.maxElementsPerWorker) + this.workerImplementation?.maxElementsPerWorker != null ? ` (${this.workerImplementation?.maxElementsPerWorker} charging station(s) per worker)` : '' }`