This commit is contained in:
river
2025-01-15 17:29:43 +08:00
2 changed files with 3 additions and 19 deletions

View File

@@ -40,11 +40,7 @@ export async function getClientTools(clientId: string) {
// 获取可用客户端数量
export async function getAvailableClientsCount() {
let count = 0;
clientsMap.forEach((map) => {
if (!map.errorMsg) {
count += map?.tools?.tools?.length ?? 0;
}
});
clientsMap.forEach((map) => !map.errorMsg && count++);
return count;
}