This commit is contained in:
parent
77f736950f
commit
8655727009
@ -230,7 +230,7 @@ module.exports = async (client, apex, app) => {
|
|||||||
instancessorted = instancesall.sort((a, b) => a < b ? -1 : a > b ? 1 : 0),
|
instancessorted = instancesall.sort((a, b) => a < b ? -1 : a > b ? 1 : 0),
|
||||||
parts = [],
|
parts = [],
|
||||||
split = workers,
|
split = workers,
|
||||||
chunkSize = Math.floor(instancessorted.length / split)
|
chunkSize = Math.ceil(instancessorted.length / split)
|
||||||
await scanIndex(server, instancesall)
|
await scanIndex(server, instancesall)
|
||||||
if (instancesall.length > 0) {
|
if (instancesall.length > 0) {
|
||||||
if (!servers || servers.length === 0) {
|
if (!servers || servers.length === 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user