feat: Display the number of clients instead of the number of available tools.

This commit is contained in:
Kadxy
2025-01-15 17:24:04 +08:00
parent 8aa9a500fd
commit be59de56f0
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;
}