From 99a2bbaf4954d1cd1c94a04134712d63cbb40010 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Wed, 15 May 2024 17:38:25 +0200 Subject: [PATCH] fixups post reviews --- CountItems/masterProcess.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); });