Math.ceil
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
ale 2024-09-20 02:44:59 +02:00
parent 77f736950f
commit 8655727009

View File

@ -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) {