Skip to content

Commit

Permalink
fixups post reviews
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 15, 2024
1 parent 094b51c commit 99a2bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CountItems/masterProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -81,5 +81,5 @@ countMaster.start(err => {
waitingForPromScraping = true;
setTimeout(() => {
countMaster.stop(null, () => process.exit(0));
}, promtheusPollingAttempts * prometheusPollingPeriod * 1000 * 4);
}, prometheusPollingAttempts * prometheusPollingPeriod * 1000 * 4);
});

0 comments on commit 99a2bba

Please sign in to comment.