mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 07:07:33 +00:00
perf(games/assettocorsa): replace parseInt with Math.floor
This commit is contained in:
parent
402be8a357
commit
8a968c006c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue