浏览代码

fix(device-service): 调整最大设备数量计算逻辑

xiongzhu 10 月之前
父节点
当前提交
944a10220d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/device/device.service.ts

+ 1 - 1
src/device/device.service.ts

@@ -557,7 +557,7 @@ export class DeviceService implements OnModuleInit {
                 useCountry: countryMapping.find((c) => c.id === task.country)?.useCountry || ['any'],
                 exclude: countryMapping.find((c) => c.id === task.country)?.exclude || [],
                 devices: devices.filter((d) => d.pinTask === task.id),
-                maxDevices: Math.max(Math.ceil((task.total - task.sent) / 60), 5)
+                maxDevices: Math.max(Math.ceil((task.total - task.sent) / 20), 5)
             }
         })