diff --git a/CountItems/masterProcess.js b/CountItems/masterProcess.js index f5272b7d..712a21c7 100644 --- a/CountItems/masterProcess.js +++ b/CountItems/masterProcess.js @@ -28,7 +28,7 @@ const prometheusPollingPeriod = Number.parseInt(process.env.PROMETHEUS_POLLING_P ? Number.parseInt(process.env.PROMETHEUS_POLLING_PERIOD, 10) : 30; -const promtheusPollingAttempts = Number.parseInt(process.env.PROMETHEUS_POLLING_ATTEMPTS, 10) > 0 +const prometheusPollingAttempts = Number.parseInt(process.env.PROMETHEUS_POLLING_ATTEMPTS, 10) > 0 ? Number.parseInt(process.env.PROMETHEUS_POLLING_ATTEMPTS, 10) : 5; @@ -81,5 +81,5 @@ countMaster.start(err => { waitingForPromScraping = true; setTimeout(() => { countMaster.stop(null, () => process.exit(0)); - }, promtheusPollingAttempts * prometheusPollingPeriod * 1000 * 4); + }, prometheusPollingAttempts * prometheusPollingPeriod * 1000 * 4); });