mirror of
https://github.com/gamedig/node-gamedig.git
synced 2024-09-19 17:01:31 +02:00
perf(games/assettocorsa): replace parseInt with Math.floor
This commit is contained in:
parent
402be8a357
commit
8a968c006c
@ -7,7 +7,7 @@ export default class assettocorsa extends Core {
|
||||
responseType: 'json'
|
||||
})
|
||||
const carInfo = await this.request({
|
||||
url: `http://${this.options.address}:${this.options.port}/JSON|${parseInt(Math.random() * 999999999999999, 10)}`,
|
||||
url: `http://${this.options.address}:${this.options.port}/JSON|${Math.floor(Math.random() * 999999999999999)}`,
|
||||
responseType: 'json'
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user