Skip to content

Commit

Permalink
chore: be explicit about parseInt radix
Browse files Browse the repository at this point in the history
  • Loading branch information
robinbourianes-kalisio committed Nov 14, 2023
1 parent f2e9240 commit 59609aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jobfile-hydro-observations.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59609aa

Please sign in to comment.