From 59609aa78f24998aa853cce97819d929401507e2 Mon Sep 17 00:00:00 2001 From: Robin Bourianes Date: Tue, 14 Nov 2023 11:50:58 +0100 Subject: [PATCH] chore: be explicit about parseInt radix --- jobfile-hydro-observations.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jobfile-hydro-observations.js b/jobfile-hydro-observations.js index 7ac4f13..778e8bd 100644 --- a/jobfile-hydro-observations.js +++ b/jobfile-hydro-observations.js @@ -5,9 +5,9 @@ const outputDir = './output' // Configuration const dbUrl = process.env.DB_URL || 'mongodb://127.0.0.1:27017/hubeau' -const ttl = parseInt(process.env.TTL) || (7 * 24 * 60 * 60) // duration in seconds -const history = parseInt(process.env.HISTORY) || (1 * 24 * 60 * 60 * 1000) // duration in miliseconds -const timeout = parseInt(process.env.TIMEOUT) || (30 * 60 * 1000) // duration in miliseconds +const ttl = parseInt(process.env.TTL, 10) || (7 * 24 * 60 * 60) // duration in seconds +const history = parseInt(process.env.HISTORY, 10) || (1 * 24 * 60 * 60 * 1000) // duration in miliseconds +const timeout = parseInt(process.env.TIMEOUT, 10) || (30 * 60 * 1000) // duration in miliseconds let dictstations = null let total = null