Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Tahler committed Apr 18, 2018
1 parent 6110e7c commit 22a13c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/scheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,11 @@ class Scheduler extends EventEmitter {
}))

const nowInSeconds = Math.round(new Date().getTime() / 1000)
const stuckWorkerTimeoutInSeconts = Math.round(this.options.stuckWorkerTimeout / 1000)
const stuckWorkerTimeoutInSeconds = Math.round(this.options.stuckWorkerTimeout / 1000)
for (let i in payloads) {
const {name, time} = payloads[i]
const delta = nowInSeconds - time
if (delta > stuckWorkerTimeoutInSeconts) {
if (delta > stuckWorkerTimeoutInSeconds) {
await this.forceCleanWorker(name, delta)
}
i++
Expand Down

0 comments on commit 22a13c8

Please sign in to comment.